diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-09-19 16:53:09 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-09-27 10:28:28 +0200 |
commit | 067c7f0332970350b064d703924360c4fe019149 (patch) | |
tree | ea5c6fc41fb829e3b8b50e76bacd289445ed04cb /plugins | |
parent | c4a17bd90752c5a4bc5553319b66c59beb94ce11 (diff) | |
download | connman-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.c | 11 |
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); } |