summaryrefslogtreecommitdiff
path: root/lib/route/neightbl.c
diff options
context:
space:
mode:
authorThomas Graf <tgr@deb.localdomain>2007-12-17 16:52:41 +0100
committerThomas Graf <tgr@deb.localdomain>2007-12-17 16:52:41 +0100
commit155ad439a49df034ec58ee4218834bc5b0120515 (patch)
treef57b8516e88f929f68f75ce08ae6bdc2220db4ca /lib/route/neightbl.c
parent91c330aae51cd6cd44ad730e10dc82724998c810 (diff)
downloadlibnl-155ad439a49df034ec58ee4218834bc5b0120515.tar.gz
Fix memory leak when parsing netlink messages into caches
The reference created by the parsers was never given back.
Diffstat (limited to 'lib/route/neightbl.c')
-rw-r--r--lib/route/neightbl.c2
1 files changed, 1 insertions, 1 deletions
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;