[PATCH 6/7] core: fix leaked address structure after parsing mac address



---
 src/nm-system.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/nm-system.c b/src/nm-system.c
index ac428ee..7fa4b6a 100644
--- a/src/nm-system.c
+++ b/src/nm-system.c
@@ -758,6 +758,7 @@ nm_system_iface_set_mac (int ifindex, const struct ether_addr *mac)
 			return FALSE;
 		}
 		rtnl_link_set_addr (new, addr);
+		nl_addr_put (addr);
 		nlh = nm_netlink_get_default_handle ();
 		if (nlh) {
 			err = rtnl_link_change (nlh, old, new, 0);
-- 
1.7.6



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]