From: Amit Khatri Date: Fri, 26 Jun 2015 09:02:36 +0000 (+0000) Subject: iw: free memory on scan parse errors X-Git-Tag: v4.3~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=367e7dd301508761e95792213a6ed073fbccd980;p=thirdparty%2Fiw.git iw: free memory on scan parse errors Signed-off-by: Amit Khatri Signed-off-by: Rahul Jain Signed-off-by: Johannes Berg --- diff --git a/scan.c b/scan.c index 5f0a2a9..e98f5d7 100644 --- a/scan.c +++ b/scan.c @@ -408,6 +408,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);