From 155ad439a49df034ec58ee4218834bc5b0120515 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Mon, 17 Dec 2007 16:52:41 +0100 Subject: Fix memory leak when parsing netlink messages into caches The reference created by the parsers was never given back. --- lib/route/neightbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/route/neightbl.c') diff --git a/lib/route/neightbl.c b/lib/route/neightbl.c index 38c345d..3191b5b 100644 --- a/lib/route/neightbl.c +++ b/lib/route/neightbl.c @@ -220,7 +220,7 @@ static int neightbl_msg_parser(struct nl_cache_ops *ops, if (err < 0) goto errout; - return P_ACCEPT; + err = P_ACCEPT; errout: rtnl_neightbl_put(ntbl); return err; -- cgit v1.2.1