Fix memory leak with IPv6 address and network values
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 30 Jul 2010 02:07:17 +0000 (19:07 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 30 Jul 2010 02:07:17 +0000 (19:07 -0700)
src/element.c

index 209ee9c..ddfa9ed 100644 (file)
@@ -652,6 +652,8 @@ void connman_element_unref(struct connman_element *element)
                g_free(element->ipv4.nameserver);
                g_free(element->ipv4.timeserver);
                g_free(element->ipv4.pac);
+               g_free(element->ipv6.address);
+               g_free(element->ipv6.network);
                g_free(element->devname);
                g_free(element->path);
                g_free(element->name);