From b921e2e2ff27d9aebc616e77afc4699c036682fe Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Wed, 5 Jan 2011 11:02:30 +0100 Subject: [PATCH] Close iolog file if reading version string fails Signed-off-by: Stefan Hajnoczi Signed-off-by: Jens Axboe --- log.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.25.1