From 5bf5d20daa325fab550acb6823bc5bbe269d9369 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Fri, 31 Dec 2010 11:57:15 +0200 Subject: memoryleak: remove element when not needed any more --- src/dhcp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/dhcp.c') diff --git a/src/dhcp.c b/src/dhcp.c index 36e2ff5b..76c0b75a 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -328,6 +328,7 @@ static void dhcp_remove(struct connman_element *element) } connman_dhcp_unref(dhcp); + connman_element_unref(element); } static void dhcp_change(struct connman_element *element) -- cgit v1.2.3