[PATCH v3 24/42] vpn: Free allocated ipconfig struct

Jukka Rissanen jukka.rissanen at linux.intel.com
Wed Nov 7 03:48:50 PST 2012


---
 vpn/vpn-provider.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c
index 03e5694..f9fba35 100644
--- a/vpn/vpn-provider.c
+++ b/vpn/vpn-provider.c
@@ -917,6 +917,9 @@ static void provider_destruct(struct vpn_provider *provider)
 		g_resolv_unref(provider->resolv);
 		provider->resolv = NULL;
 	}
+	__vpn_ipconfig_unref(provider->ipconfig_ipv4);
+	__vpn_ipconfig_unref(provider->ipconfig_ipv6);
+
 	g_strfreev(provider->host_ip);
 	g_free(provider);
 }
-- 
1.7.11.4




More information about the connman mailing list