networkd: link - fix memleak of icmp6 struct
This commit is contained in:
parent
6278a20190
commit
6b66097b95
|
@ -124,8 +124,8 @@ static void link_free(Link *link) {
|
||||||
free(link->lease_file);
|
free(link->lease_file);
|
||||||
|
|
||||||
sd_ipv4ll_unref(link->ipv4ll);
|
sd_ipv4ll_unref(link->ipv4ll);
|
||||||
|
|
||||||
sd_dhcp6_client_unref(link->dhcp6_client);
|
sd_dhcp6_client_unref(link->dhcp6_client);
|
||||||
|
sd_icmp6_nd_unref(link->icmp6_router_discovery);
|
||||||
|
|
||||||
hashmap_remove(link->manager->links, &link->ifindex);
|
hashmap_remove(link->manager->links, &link->ifindex);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue