]> granicus.if.org Git - libnl/commitdiff
Fix rtnl_link object memory leak when freeing rtnl_addr objects.
authorMichael Altizer <xiche@verizon.net>
Sun, 9 Oct 2011 21:02:34 +0000 (17:02 -0400)
committerThomas Graf <tgraf@redhat.com>
Mon, 10 Oct 2011 09:44:05 +0000 (11:44 +0200)
Signed-off-by: Michael Altizer <xiche@verizon.net>
lib/route/addr.c

index 4ca6335c869262cbd8990c06ae51993f808b01ba..deb88ba7403ca85b267442f698d2a972290125eb 100644 (file)
@@ -151,6 +151,7 @@ static void addr_free_data(struct nl_object *obj)
        nl_addr_put(addr->a_bcast);
        nl_addr_put(addr->a_multicast);
        nl_addr_put(addr->a_anycast);
+       rtnl_link_put(addr->a_link);
 }
 
 static int addr_clone(struct nl_object *_dst, struct nl_object *_src)