Fixed memory leak 17/165517/1
authortaesub kim <taesub.kim@samsung.com>
Tue, 2 Jan 2018 00:17:02 +0000 (09:17 +0900)
committertaesub kim <taesub.kim@samsung.com>
Tue, 2 Jan 2018 00:22:10 +0000 (09:22 +0900)
304423, 304424 SVACE issue

Change-Id: I52fd2347db2d6af1c4ceb7284e7467b917db42b6
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
test/wifi_manager_test.c

index 432b5d1569da0c151427756adbd5aceafaf6bdae..2edef4381ae27bff5d2283f4dc754818a67f1c09 100755 (executable)
@@ -2511,6 +2511,7 @@ static bool __test_get_netlink_scan_list(wifi_manager_ap_h ap, void *user_data)
 
        if (wifi_manager_ap_get_bssid(ap, &bssid) != WIFI_MANAGER_ERROR_NONE) {
                printf("Failed to get bssid for ap\n");
+               g_free(bssid);
                return false;
        }
 
@@ -2518,6 +2519,7 @@ static bool __test_get_netlink_scan_list(wifi_manager_ap_h ap, void *user_data)
        if (wifi_manager_ap_get_essid(ap, &essid) != WIFI_MANAGER_ERROR_NONE) {
                printf("Failed to get essid for ap\n");
                g_free(bssid);
+               g_free(essid);
                return false;
        }