journald: do not free uninitialized pointer in error path

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-01-18 15:21:28 -05:00
parent 2adae5ac5d
commit ff82c36c79
+1 -1
View File
@@ -1330,7 +1330,7 @@ static int server_parse_proc_cmdline(Server *s) {
p = line;
for(;;) {
_cleanup_free_ char *word;
_cleanup_free_ char *word = NULL;
r = extract_first_word(&p, &word, NULL, 0);
if (r < 0)