Fixed memory leak issue. 99/84599/1 tizen_tv_devel
authorSumit Aggarwal <aggarwal.s@samsung.com>
Fri, 19 Aug 2016 10:43:13 +0000 (16:13 +0530)
committerSumit Aggarwal <aggarwal.s@samsung.com>
Fri, 19 Aug 2016 10:43:13 +0000 (16:13 +0530)
Change-Id: Ic687fef745363f61ab091586c0b0c5bd225a801d
Signed-off-by: Sumit Aggarwal <aggarwal.s@samsung.com>
src/wifi-wps.c

index 500d1f0..a8326fc 100755 (executable)
@@ -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);
 }