Close iolog file if reading version string fails

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
diff --git a/log.c b/log.c
index 266dc06..d4850a5 100644
--- a/log.c
+++ b/log.c
@@ -415,6 +415,7 @@
 	if (!p) {
 		td_verror(td, errno, "iolog read");
 		log_err("fio: unable to read iolog\n");
+		fclose(f);
 		return 1;
 	}