Author: nbd
Date: 2015-07-08 17:59:38 +0200 (Wed, 08 Jul 2015)
New Revision: 46275

Modified:
   trunk/package/network/config/swconfig/src/swlib.c
Log:
swconfig: swlib.c: Fix another memleak

Signed-off-by: Helmut Schaa <[email protected]>

Modified: trunk/package/network/config/swconfig/src/swlib.c
===================================================================
--- trunk/package/network/config/swconfig/src/swlib.c   2015-07-08 14:26:18 UTC 
(rev 46274)
+++ trunk/package/network/config/swconfig/src/swlib.c   2015-07-08 15:59:38 UTC 
(rev 46275)
@@ -529,10 +529,13 @@
 static void
 swlib_priv_free(void)
 {
+       if (family)
+               nl_object_put((struct nl_object*)family);
        if (cache)
                nl_cache_free(cache);
        if (handle)
                nl_socket_free(handle);
+       family = NULL;
        handle = NULL;
        cache = NULL;
 }
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to