summaryrefslogtreecommitdiff
path: root/lib/route/link.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/link.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/link.c')
-rw-r--r--lib/route/link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/link.c b/lib/route/link.c
index 4774a58..d3c204f 100644
--- a/lib/route/link.c
+++ b/lib/route/link.c
@@ -327,7 +327,7 @@ static int link_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who,
if (err < 0)
goto errout;
- return P_ACCEPT;
+ err = P_ACCEPT;
errout:
rtnl_link_put(link);