Possible memory leak here as we might have ip address allocated
already.
---
plugins/vpn.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/vpn.c b/plugins/vpn.c
index 0c7eea2..400112e 100644
--- a/plugins/vpn.c
+++ b/plugins/vpn.c
@@ -395,6 +395,7 @@ static int extract_ip(DBusMessageIter *array, int family,
dbus_message_iter_next(&dict);
}
+ connman_ipaddress_free(data->ip);
data->ip = connman_ipaddress_alloc(family);
if (data->ip == NULL)
return -ENOMEM;
--
1.7.11.7
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman