networkd: link - fix memory leak

This commit is contained in:
Tom Gundersen 2014-03-31 10:04:32 +02:00
parent 2292547af9
commit fd88eb8ab0
1 changed files with 1 additions and 1 deletions

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