mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-28 06:30:50 +02:00
core: fix leaked address structure after parsing mac address
This commit is contained in:
parent
1134eee1e6
commit
360143e42f
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue