summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-09-19 16:53:09 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-09-27 10:28:28 +0200
commit067c7f0332970350b064d703924360c4fe019149 (patch)
treeea5c6fc41fb829e3b8b50e76bacd289445ed04cb /plugins
parentc4a17bd90752c5a4bc5553319b66c59beb94ce11 (diff)
downloadconnman-067c7f0332970350b064d703924360c4fe019149.tar.gz
connman-067c7f0332970350b064d703924360c4fe019149.tar.bz2
connman-067c7f0332970350b064d703924360c4fe019149.zip
session_policy: Use bearer free function
Diffstat (limited to 'plugins')
-rw-r--r--plugins/session_policy.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/session_policy.c b/plugins/session_policy.c
index dadfd5b3..5c2c418f 100644
--- a/plugins/session_policy.c
+++ b/plugins/session_policy.c
@@ -75,20 +75,11 @@ static struct connman_session_policy session_policy = {
.destroy = policy_destroy,
};
-static void cleanup_bearer(gpointer data, gpointer user_data)
-{
- struct connman_session_bearer *info = data;
-
- g_free(info->name);
- g_free(info);
-}
-
static void cleanup_config(gpointer user_data)
{
struct connman_session_config *config = user_data;
- g_slist_foreach(config->allowed_bearers, cleanup_bearer, NULL);
- g_slist_free(config->allowed_bearers);
+ connman_session_free_bearers(config->allowed_bearers);
g_free(config);
}