From: Jim Meyering Date: Wed, 15 Jun 2011 18:13:54 +0000 (+0200) Subject: systemctl: plug a leak upon create_symlink mismatch X-Git-Tag: v29~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23b2a3300c11535022f3f54b4e0bd37153c129ba;p=systemd systemctl: plug a leak upon create_symlink mismatch --- diff --git a/src/systemctl.c b/src/systemctl.c index 5a0055bd..08c7fabb 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; }