WGID-169215: Fixed memory leak 15/114415/1 accepted/tizen/3.0/common/20170215.120943 accepted/tizen/3.0/ivi/20170215.065107 accepted/tizen/3.0/mobile/20170215.065003 accepted/tizen/3.0/tv/20170215.065027 accepted/tizen/3.0/wearable/20170215.065051 submit/tizen_3.0/20170213.102726
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 08:42:08 +0000 (17:42 +0900)
Change-Id: If57184663e6b17b2dc2bc774c50a25071064fe7e
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
packaging/capi-network-wifi-manager.spec
src/wifi_internal.c
test/wifi_manager_test.c

index 9364d403870a2c784de8894dced8c6c8e86a5a41..3d36f6a4db1508cae633ac269ab0d4c47240d380 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          capi-network-wifi-manager
 Summary:       Network Wi-Fi library in TIZEN C API
-Version:       1.0.13
+Version:       1.0.14
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
index b1d3933854c37b7892e5a632b049cd118b649762..3ee7a40b9ff81aebbac73fe27a549fc464a3eb8c 100755 (executable)
@@ -274,6 +274,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 a4bab1444ab88e63122ac900e342f6c169acdc0b..448327ed8c2727005116608469438063981e5256 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;
 }