From: Stefan Hajnoczi Date: Wed, 5 Jan 2011 10:02:30 +0000 (+0100) Subject: Close iolog file if reading version string fails X-Git-Tag: fio-1.50-rc1~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=b921e2e2ff27d9aebc616e77afc4699c036682fe Close iolog file if reading version string fails Signed-off-by: Stefan Hajnoczi Signed-off-by: Jens Axboe --- diff --git a/log.c b/log.c index 266dc06b..d4850a52 100644 --- a/log.c +++ b/log.c @@ -415,6 +415,7 @@ static int init_iolog_read(struct thread_data *td) if (!p) { td_verror(td, errno, "iolog read"); log_err("fio: unable to read iolog\n"); + fclose(f); return 1; }