diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-01-13 00:54:25 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-01-13 00:54:25 +0000 |
commit | 0cb05017c63b4b627948ed3d75a054a327a56ebf (patch) | |
tree | a4045066ab5363f941090272f431cc9de10e5566 /package/iwinfo/src | |
parent | e3a21eb9f87988f26d0871ad050f05f8d88ddcc7 (diff) | |
download | upstream-0cb05017c63b4b627948ed3d75a054a327a56ebf.tar.gz upstream-0cb05017c63b4b627948ed3d75a054a327a56ebf.tar.bz2 upstream-0cb05017c63b4b627948ed3d75a054a327a56ebf.zip |
iwinfo: plug memory leak in nl80211 backend, nl80211_close() did not put the family pointer
SVN-Revision: 29723
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 4672b9d640..4f3390fdbb 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); |