From 33da8a31bc26d4961fcbf63b7ee1d3849890e805 Mon Sep 17 00:00:00 2001 From: Sumit Aggarwal Date: Fri, 19 Aug 2016 16:13:13 +0530 Subject: [PATCH] Fixed memory leak issue. Change-Id: Ic687fef745363f61ab091586c0b0c5bd225a801d Signed-off-by: Sumit Aggarwal --- src/wifi-wps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wifi-wps.c b/src/wifi-wps.c index 500d1f0..a8326fc 100755 --- a/src/wifi-wps.c +++ b/src/wifi-wps.c @@ -501,6 +501,8 @@ static void __netconfig_wifi_interface_create_result( wifi_power_driver_and_supplicant(FALSE); } + if (error) + g_error_free(error); g_variant_unref(message); } -- 2.34.1