diff options
author | Daniel Mack <github@zonque.org> | 2015-10-01 12:16:55 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-10-01 12:16:55 +0200 |
commit | d4e783e44dccb3d5e7ea2fd42b107b2c3e44629b (patch) | |
tree | 21f75efe4a0d0011708148fbffa716dfc2a3edee /src | |
parent | 52dd374765ad5c8dec55db135866942830c99060 (diff) | |
parent | bc6c18fef106ca53a975968df298bce339490214 (diff) |
Merge pull request #1434 from reverendhomer/patch-1
systemctl: fix memory leak in systemctl_parse_argv
Diffstat (limited to 'src')
-rw-r--r-- | src/systemctl/systemctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 6d33badba4..0615dd6aa5 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -6860,7 +6860,7 @@ static int systemctl_parse_argv(int argc, char *argv[]) { size_t size; FOREACH_WORD_SEPARATOR(word, size, optarg, ",", state) { - char *s; + _cleanup_free_ char *s = NULL; s = strndup(word, size); if (!s) |