From: Felix Fietkau Date: Wed, 8 Jul 2015 15:59:38 +0000 (+0000) Subject: swconfig: swlib.c: Fix another memleak X-Git-Tag: reboot~2545 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7a04fd0e3a457e2d561201fffecb5811710ccb92;p=openwrt%2Fstaging%2Fxback.git swconfig: swlib.c: Fix another memleak Signed-off-by: Helmut Schaa SVN-Revision: 46275 --- diff --git a/package/network/config/swconfig/src/swlib.c b/package/network/config/swconfig/src/swlib.c index d9ef62f4ab..0dbace551e 100644 --- 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; }