projects
/
platform
/
core
/
connectivity
/
net-config.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c955b04
)
Fix memory leak in __netconfig_request_netlink_scan()
67/175267/1
author
Taesoo Jun
<steve.jun@samsung.com>
Tue, 10 Apr 2018 02:49:57 +0000
(11:49 +0900)
committer
Taesoo Jun
<steve.jun@samsung.com>
Tue, 10 Apr 2018 02:49:57 +0000
(11:49 +0900)
Change-Id: I175131016b300e3ad9ffd9fce67c98b1c63d0ae3
src/wifi-netlink-scan.c
patch
|
blob
|
history
diff --git
a/src/wifi-netlink-scan.c
b/src/wifi-netlink-scan.c
index
e008fd2
..
3ad72c5
100755
(executable)
--- a/
src/wifi-netlink-scan.c
+++ b/
src/wifi-netlink-scan.c
@@
-693,7
+693,7
@@
static int __netconfig_request_netlink_scan(struct nl_sock *socket,
if (results.aborted) {
DBG("scan aborted");
-
return 1
;
+
goto out
;
}
out:
@@
-703,7
+703,7
@@
out:
nl_cb_put(cb);
nl_socket_drop_membership(socket, mcid);
- if (ret < 0)
+ if (ret < 0
|| ret == 1
)
return ret;
DBG("Scan done");