[PATCH 1/3] Fix rtnl_link object memory leak when freeing rtnl_addr objects.

Michael Altizer xiche at verizon.net
Sun Oct 9 17:02:34 EDT 2011


Signed-off-by: Michael Altizer <xiche at verizon.net>
---
 lib/route/addr.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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)
-- 
1.7.6




More information about the libnl mailing list