projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
505de2b
)
memoryleak: address was not freed
author
Jukka Rissanen
<jukka.rissanen@nokia.com>
Fri, 31 Dec 2010 09:57:05 +0000
(11:57 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 31 Dec 2010 18:07:54 +0000
(10:07 -0800)
plugins/dhcp.c
patch
|
blob
|
history
diff --git
a/plugins/dhcp.c
b/plugins/dhcp.c
index
07fed38
..
5fe99d7
100644
(file)
--- a/
plugins/dhcp.c
+++ b/
plugins/dhcp.c
@@
-76,6
+76,7
@@
static void lease_available_cb(GDHCPClient *dhcp_client, gpointer user_data)
address = g_dhcp_client_get_address(dhcp_client);
if (address != NULL)
connman_dhcp_set_value(dhcp, "Address", address);
+ g_free(address);
option = g_dhcp_client_get_option(dhcp_client, G_DHCP_SUBNET);
if (option != NULL)