diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-01-13 00:54:25 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-01-13 00:54:25 +0000 |
commit | f49dda30e25250df50728ae34ab85af542c42d07 (patch) | |
tree | 74b02ad2a73857a56b5f4001edf5f1097072a6cb /package/iwinfo/src | |
parent | 056e3e42e00317fa5abb9d0e7aaf1bf5ef22a5e7 (diff) |
[package] iwinfo: plug memory leak in nl80211 backend, nl80211_close() did not put the family pointer
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29723 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/iwinfo/src')
-rw-r--r-- | package/iwinfo/src/iwinfo_nl80211.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/iwinfo/src/iwinfo_nl80211.c b/package/iwinfo/src/iwinfo_nl80211.c index 4672b9d64..4f3390fdb 100644 --- a/package/iwinfo/src/iwinfo_nl80211.c +++ b/package/iwinfo/src/iwinfo_nl80211.c @@ -559,6 +559,9 @@ void nl80211_close(void) { if (nls) { + if (nls->nl80211) + genl_family_put(nls->nl80211); + if (nls->nl_sock) nl_socket_free(nls->nl_sock); |