From 3a834010ab1b680e7e46274a06b0bc5cdad8d413 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Fri, 31 Dec 2010 11:57:05 +0200 Subject: [PATCH] memoryleak: address was not freed --- plugins/dhcp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/dhcp.c b/plugins/dhcp.c index 07fed38..5fe99d7 100644 --- 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) -- 2.7.4