diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-08-05 18:48:25 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-08-05 18:48:25 +0200 |
commit | 109a5de8db90cb59f885bfda734728179fcd8d8b (patch) | |
tree | 266e5bc07bf79b9ada85e662e3219b4bf613ad68 | |
parent | e30c5682e2499912dd97444e6f4e3f098d89eab5 (diff) | |
download | connman-109a5de8db90cb59f885bfda734728179fcd8d8b.tar.gz connman-109a5de8db90cb59f885bfda734728179fcd8d8b.tar.bz2 connman-109a5de8db90cb59f885bfda734728179fcd8d8b.zip |
Remove useless provider_free routine
-rw-r--r-- | src/provider.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/src/provider.c b/src/provider.c index 1753f2f0..a17cdd06 100644 --- a/src/provider.c +++ b/src/provider.c @@ -319,20 +319,6 @@ int connman_provider_set_state(struct connman_provider *provider, return -EINVAL; } -static void provider_free(gpointer user_data) -{ - struct connman_provider *provider = user_data; - - DBG("provider %p", provider); - - g_free(provider->name); - g_free(provider->type); - g_free(provider->domain); - g_free(provider->identifier); - g_free(provider->dns); - __connman_service_put(provider->vpn_service); -} - static void unregister_provider(gpointer data) { struct connman_provider *provider = data; @@ -351,7 +337,12 @@ static void provider_destruct(struct connman_element *element) DBG("provider %p", provider); - provider_free(provider); + g_free(provider->name); + g_free(provider->type); + g_free(provider->domain); + g_free(provider->identifier); + g_free(provider->dns); + __connman_service_put(provider->vpn_service); } static void __connman_provider_initialize(struct connman_provider *provider) |