WGID-169215: Fixed memory leak 40/114440/1 accepted/tizen/common/20170214.173410 accepted/tizen/ivi/20170214.011137 accepted/tizen/mobile/20170214.011100 accepted/tizen/tv/20170214.011113 accepted/tizen/wearable/20170214.011125 submit/tizen/20170213.093416
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 13 Feb 2017 08:41:42 +0000 (17:41 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 13 Feb 2017 09:51:17 +0000 (18:51 +0900)
Change-Id: If57184663e6b17b2dc2bc774c50a25071064fe7e
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
src/wifi_internal.c
test/wifi_manager_test.c

index 27c3f8d..18f02d1 100755 (executable)
@@ -276,6 +276,7 @@ static void __update_specific_iterator(GSList *bss_list)
                }
                if (net_init_profile_info(prof_info) != NET_ERR_NONE) {
                        WIFI_LOG(WIFI_ERROR, "Failed to init profile");
+                       g_free(prof_info);
                        return;
                }
                g_strlcpy(prof_info->essid, info->ssid, NET_WLAN_ESSID_LEN);
index a4bab14..448327e 100755 (executable)
@@ -963,6 +963,8 @@ static bool _test_config_list_cb_for_remove(const wifi_manager_config_h config,
                return false;
        }
 
+       g_free(name);
+
        return true;
 }