From 032f81645b3a60be316d7a0ed1e84443aa8737ba Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Mon, 20 Aug 2012 14:52:07 +0200 Subject: core: free word later in parse_proc_cmdline --- src/core/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/main.c b/src/core/main.c index b50a1ca215..12af3cdd27 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -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; -- cgit v1.2.3-54-g00ecf