iwinfo: plug memory leak in nl80211 backend, nl80211_close() did not put the family...
[openwrt/staging/mkresin.git] / package / iwinfo / src / iwinfo_nl80211.c
index 4672b9d6408b70894a3bd83008fca119b181c05e..4f3390fdbbbb46256fe7c2bc48e86bd2dda080d6 100644 (file)
@@ -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);