systemctl: fix memory leak in systemctl_parse_argv

This commit fixes Coverity #1325228
This commit is contained in:
reverendhomer
2015-10-01 12:09:00 +03:00
parent 2ce8d6080d
commit bc6c18fef1
+1 -1
View File
@@ -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)