projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc2c89c
)
swconfig: swlib.c: Fix another memleak
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 8 Jul 2015 15:59:38 +0000
(15:59 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 8 Jul 2015 15:59:38 +0000
(15:59 +0000)
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 46275
package/network/config/swconfig/src/swlib.c
patch
|
blob
|
history
diff --git
a/package/network/config/swconfig/src/swlib.c
b/package/network/config/swconfig/src/swlib.c
index d9ef62f4ab46008d251b50a57dacddfce40f1872..0dbace551ec887d14de041526e70d04f6cbd331f 100644
(file)
--- a/
package/network/config/swconfig/src/swlib.c
+++ b/
package/network/config/swconfig/src/swlib.c
@@
-529,10
+529,13
@@
struct switch_attr *swlib_lookup_attr(struct switch_dev *dev,
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;
}