core: free word later in parse_proc_cmdline
This commit is contained in:
parent
a34faf579d
commit
032f81645b
|
@ -727,12 +727,13 @@ static int parse_proc_cmdline(void) {
|
|||
}
|
||||
|
||||
r = parse_proc_cmdline_word(word);
|
||||
free(word);
|
||||
|
||||
if (r < 0) {
|
||||
log_error("Failed on cmdline argument %s: %s", word, strerror(-r));
|
||||
free(word);
|
||||
goto finish;
|
||||
}
|
||||
|
||||
free(word);
|
||||
}
|
||||
|
||||
r = 0;
|
||||
|
|
Loading…
Reference in a new issue