DHCP struct was not freed when DHCP connection was closed.
---
 src/dhcp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/dhcp.c b/src/dhcp.c
index 246de30..168697d 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -66,6 +66,8 @@ static void dhcp_free(struct connman_dhcp *dhcp)
        dhcp->nameservers = NULL;
        dhcp->timeservers = NULL;
        dhcp->pac = NULL;
+
+       g_free(dhcp);
 }
 
 /**
-- 
1.8.3.1

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to