mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +03:00
networkd: link - fix memory leak
This commit is contained in:
parent
2292547af9
commit
fd88eb8ab0
@ -1427,7 +1427,7 @@ int link_save(Link *link) {
|
||||
link_state_to_string(link->state));
|
||||
|
||||
if (link->dhcp_lease) {
|
||||
char *lease_file;
|
||||
_cleanup_free_ char *lease_file = NULL;
|
||||
|
||||
r = asprintf(&lease_file, "/run/systemd/network/leases/%"PRIu64,
|
||||
link->ifindex);
|
||||
|
Loading…
Reference in New Issue
Block a user