core: free word later in parse_proc_cmdline

This commit is contained in:
Lukas Nykryn 2012-08-20 14:52:07 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent a34faf579d
commit 032f81645b

View file

@ -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;