summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-03-31 10:04:32 +0200
committerTom Gundersen <teg@jklm.no>2014-03-31 10:04:32 +0200
commitfd88eb8ab0ae6b3dec15b29725ad040eafe7ac67 (patch)
tree7b98f46ccec42f29fa248a6af46b9f548b834d38 /src/network/networkd-link.c
parent2292547af9638e2b3f7e0e96a56dd6c909e516dc (diff)
networkd: link - fix memory leak
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r--src/network/networkd-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index aa59dd7cf4..752ecae254 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -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);