projects
/
platform
/
core
/
api
/
wifi-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d36f668
)
Fix double free
43/238543/3
accepted/tizen/unified/20200716.144618
submit/tizen/20200715.050246
author
Seonah Moon
<seonah1.moon@samsung.com>
Wed, 15 Jul 2020 01:55:14 +0000
(10:55 +0900)
committer
Seonah Moon
<seonah1.moon@samsung.com>
Wed, 15 Jul 2020 04:53:42 +0000
(13:53 +0900)
Change-Id: I41f5f8ec4a5aedc5ff22f95f9c2831f4c3f8cf1c
tool/wifi_connect_tool.c
patch
|
blob
|
history
diff --git
a/tool/wifi_connect_tool.c
b/tool/wifi_connect_tool.c
index
2a81529
..
9841ae3
100755
(executable)
--- a/
tool/wifi_connect_tool.c
+++ b/
tool/wifi_connect_tool.c
@@
-246,15
+246,17
@@
static bool __found_ap_cb(wifi_manager_ap_h ap, void *user_data)
if (!strcmp(ap_name, g_ssid)) {
DEBUG("Found %s\n", g_ssid);
- free(ap_name);
ret = wifi_manager_ap_clone(&g_wifi_ap, ap);
if (ret != WIFI_MANAGER_ERROR_NONE) {
PRINT_ERROR("Fail wifi_manager_ap_clone(%d:%s)\n", ret, __convert_error_to_string(ret));
+ free(ap_name);
return false;
}
- if (g_wifi_ap)
+ if (g_wifi_ap) {
+ free(ap_name);
return false;
+ }
}
}