summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2011-06-15 20:13:54 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-15 20:44:28 +0200
commit23b2a3300c11535022f3f54b4e0bd37153c129ba (patch)
treebd0feffeb401002f3c295eee70e444a63d721991
parentd9eaa2d538c63bb3adfec82fb65eab4e1979c7b9 (diff)
systemctl: plug a leak upon create_symlink mismatch
-rw-r--r--src/systemctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index 5a0055bdfb..08c7fabb7a 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -3963,6 +3963,7 @@ static int create_symlink(const char *verb, const char *old_path, const char *ne
return 1;
}
+ free(dest);
return 0;
}