X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=log.c;h=f962864d912d9b5cdc3bfbc39286241fdd717665;hb=1332757ccc1ba0d96980dc202760977c4605235e;hp=266dc06b3b2df74d4d765835583bef44ee20d753;hpb=0d29de831183dfd049c97a03008d425ce21e2fa4;p=fio.git diff --git a/log.c b/log.c index 266dc06b..f962864d 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; } @@ -434,7 +435,7 @@ static int init_iolog_read(struct thread_data *td) } /* - * Setup a log for storing io patterns. + * Set up a log for storing io patterns. */ static int init_iolog_write(struct thread_data *td) {