Hi Johannes, Subject: [PATCH 1/4] [iw] Avoid resource memory leak. free ssids and freqs memory before return
Signed-off-by: Amit Khatri <amit.kha...@samsung.com> Signed-off-by: Rahul Jain <rahul.j...@samsung.com> --- scan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scan.c b/scan.c index bf39f34..5483c1d 100644 --- a/scan.c +++ b/scan.c @@ -409,6 +409,8 @@ static int handle_scan(struct nl80211_state *state, break; } case DONE: + nlmsg_free(ssids); + nlmsg_free(freqs); return 1; case FREQ: freq = strtoul(argv[i], &eptr, 10); -- 1.9.1