diff options
author | reverendhomer <mk.43.ecko@gmail.com> | 2015-10-01 12:09:00 +0300 |
---|---|---|
committer | reverendhomer <mk.43.ecko@gmail.com> | 2015-10-01 12:09:00 +0300 |
commit | bc6c18fef106ca53a975968df298bce339490214 (patch) | |
tree | a74468e9f79d6771ada94150949f97022b4a029a /src/systemctl/systemctl.c | |
parent | 2ce8d6080d4135ae8926fc783766c3dfbeb7a6b0 (diff) |
systemctl: fix memory leak in systemctl_parse_argv
This commit fixes Coverity #1325228
Diffstat (limited to 'src/systemctl/systemctl.c')
-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) |