summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-04-26 09:51:33 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-04-26 13:07:03 +0300
commit0ef77b8d5f1b713250561af0132f3d6fbc16bd33 (patch)
tree3af6b1b61ed505ff639da1a7cb03340d565e0e58
parentd6b90bace0ba2ca906764dde70213ed3c47f8edd (diff)
downloadconnman-0ef77b8d5f1b713250561af0132f3d6fbc16bd33.tar.gz
connman-0ef77b8d5f1b713250561af0132f3d6fbc16bd33.tar.bz2
connman-0ef77b8d5f1b713250561af0132f3d6fbc16bd33.zip
dhcpv6: Fix memory leak
The received IP address was not freed.
-rw-r--r--src/dhcpv6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c
index 7315c394..6b03a1b9 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;
}