Avoid leaking the iolog file if reading the version string fails. Signed-off-by: Stefan Hajnoczi <stefanha@xxxxxxxxxxxxxxxxxx> --- log.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/log.c b/log.c index 266dc06..d4850a5 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; } -- 1.7.2.3 -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html