From: Jens Axboe Date: Mon, 9 Apr 2018 14:07:26 +0000 (-0600) Subject: init: fix memory leak in error handling X-Git-Tag: fio-3.6~7 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1809e349feb3cdc0c606846341fbf6e6876615fa;p=fio.git init: fix memory leak in error handling Signed-off-by: Jens Axboe --- diff --git a/init.c b/init.c index 0b6fedd9..f5ff73d0 100644 --- a/init.c +++ b/init.c @@ -1970,7 +1970,8 @@ static int __parse_jobs_ini(struct thread_data *td, if (p[0] == '[') { if (nested) { log_err("No new sections in included files\n"); - return 1; + ret = 1; + goto out; } skip_fgets = 1;