summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-04-26 06:51:33 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-04-26 10:07:03 (GMT)
commit0ef77b8d5f1b713250561af0132f3d6fbc16bd33 (patch)
tree3af6b1b61ed505ff639da1a7cb03340d565e0e58 /src
parentd6b90bace0ba2ca906764dde70213ed3c47f8edd (diff)
downloadconnman-0ef77b8d5f1b713250561af0132f3d6fbc16bd33.zip
connman-0ef77b8d5f1b713250561af0132f3d6fbc16bd33.tar.gz
connman-0ef77b8d5f1b713250561af0132f3d6fbc16bd33.tar.bz2
dhcpv6: Fix memory leak
The received IP address was not freed.
Diffstat (limited to 'src')
-rw-r--r--src/dhcpv6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c
index 7315c39..6b03a1b 100644
--- a/src/dhcpv6.c
+++ b/src/dhcpv6.c
@@ -535,6 +535,8 @@ static int set_addresses(GDHCPClient *dhcp_client,
DBG("new address %s/%d", address, prefix_len);
}
+ g_free(address);
+
return 0;
}