aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-01-13 00:54:25 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-01-13 00:54:25 +0000
commit0cb05017c63b4b627948ed3d75a054a327a56ebf (patch)
treea4045066ab5363f941090272f431cc9de10e5566
parente3a21eb9f87988f26d0871ad050f05f8d88ddcc7 (diff)
downloadupstream-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
-rw-r--r--package/iwinfo/Makefile4
-rw-r--r--package/iwinfo/src/iwinfo_nl80211.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/package/iwinfo/Makefile b/package/iwinfo/Makefile
index 55a0889604..dae7470154 100644
--- a/package/iwinfo/Makefile
+++ b/package/iwinfo/Makefile
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2010-2011 Jo-Philipp Wich <xm@subsignal.org>
+# Copyright (C) 2010-2012 Jo-Philipp Wich <xm@subsignal.org>
#
# This is free software, licensed under the GPL 2 license.
#
@@ -7,7 +7,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=libiwinfo
-PKG_RELEASE:=22
+PKG_RELEASE:=23
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
PKG_CONFIG_DEPENDS := \
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);