From d17379d1950df679d5560608b2e54aaaa10ab54e Mon Sep 17 00:00:00 2001 From: Michael Altizer Date: Sun, 9 Oct 2011 17:02:34 -0400 Subject: [PATCH] Fix rtnl_link object memory leak when freeing rtnl_addr objects. Signed-off-by: Michael Altizer --- lib/route/addr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/route/addr.c b/lib/route/addr.c index 4ca6335..deb88ba 100644 --- a/lib/route/addr.c +++ b/lib/route/addr.c @@ -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) -- 2.40.0