Free disk util on exit, not on stats display
authorJens Axboe <axboe@kernel.dk>
Fri, 30 Mar 2012 06:33:27 +0000 (08:33 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Apr 2012 20:04:48 +0000 (22:04 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c
stat.c

index ec42a5cd23cc7e6e90c7c21206bcf8ff4f206c7a..4c271ba92aba4e71493f53d1ba62c6c0da177240 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -1663,6 +1663,7 @@ int fio_backend(void)
        for_each_td(td, i)
                fio_options_free(td);
 
+       free_disk_util();
        cgroup_kill(cgroup_list);
        sfree(cgroup_list);
        sfree(cgroup_mnt);
diff --git a/stat.c b/stat.c
index 2ab5f1adffd49a203ba6d0fd567e891fbc27f613..7443e665deb6c5a2c1869920a5f022f25969e5d9 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -1102,8 +1102,6 @@ void show_run_stats(void)
        else if (!terse_output)
                show_disk_util(0);
 
-       free_disk_util();
-
        free(runstats);
        free(threadstats);
 }