From 36f029d2f00d5f5b72978333deca669d33dc0807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Fri, 6 Apr 2018 16:51:27 +0200 Subject: [PATCH] * src/init.c (initialize): Free mem before exit() --- src/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/init.c b/src/init.c index 1ad150c2..ce57fb0e 100644 --- a/src/init.c +++ b/src/init.c @@ -787,11 +787,12 @@ or specify a different file using --config.\n"), SYSTEM_WGETRC); if (file_exists_p (file, &flstats)) ok &= run_wgetrc (file, &flstats); + xfree (file); + /* If there were errors processing either `.wgetrc', abort. */ if (!ok) exit (WGET_EXIT_PARSE_ERROR); - xfree (file); return; }