[backfire] iwinfo: merge memory leak fix from r29723
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 22 Jan 2012 18:38:11 +0000 (18:38 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 22 Jan 2012 18:38:11 +0000 (18:38 +0000)
SVN-Revision: 29859

package/iwinfo/Makefile
package/iwinfo/src/iwinfo_nl80211.c

index a661139..a946ef1 100644 (file)
@@ -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.
 #
 #
 # This is free software, licensed under the GPL 2 license.
 #
@@ -7,7 +7,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libiwinfo
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libiwinfo
-PKG_RELEASE:=18
+PKG_RELEASE:=18.1
 
 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
 
 
 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
 
index b3da838..96f9e79 100644 (file)
@@ -559,6 +559,9 @@ void nl80211_close(void)
 {
        if (nls)
        {
 {
        if (nls)
        {
+               if (nls->nl80211)
+                       genl_family_put(nls->nl80211);
+
                if (nls->nl_sock)
                        nl_socket_free(nls->nl_sock);
 
                if (nls->nl_sock)
                        nl_socket_free(nls->nl_sock);