1
0
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:
Tom Gundersen 2014-03-31 10:04:32 +02:00
parent 2292547af9
commit fd88eb8ab0

View File

@ -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);