log: fix use-after-free
[fio.git] / backend.c
index 95a7572d86bdf06798428ebc635e7622fd3bc32a..448fc5981ada3f1724df6982b876554ab22dd10c 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -2047,6 +2047,7 @@ int fio_backend(void)
                                struct io_log *log = agg_io_log[i];
 
                                __finish_log(log);
+                               free_log(log);
                        }
                }
        }