]> granicus.if.org Git - libnl/commitdiff
Fix nl_msg_parse() to not give back a reference it does not own
authorThomas Graf <tgr@deb.localdomain>
Mon, 17 Dec 2007 22:07:22 +0000 (23:07 +0100)
committerThomas Graf <tgr@deb.localdomain>
Mon, 17 Dec 2007 22:07:22 +0000 (23:07 +0100)
lib/msg.c

index cacc773a40ee0a6cf007b07ae739bf167ddb93cb..589fcb9cfbd0d5352ea46206c69a44dd2594d47c 100644 (file)
--- a/lib/msg.c
+++ b/lib/msg.c
@@ -736,7 +736,6 @@ static int parse_cb(struct nl_object *obj, struct nl_parser_param *p)
        struct dp_xdata *x = p->pp_arg;
 
        x->cb(obj, x->arg);
-       nl_object_put(obj);
        return 0;
 }