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>
Fri, 30 Mar 2012 06:33:27 +0000 (08:33 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c
stat.c

index 968b52213d1abc1e86ddc50092dc8a47b11129f9..75cb18b87484e5e09a43ef8decb3d5e1ed18d0a3 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -1672,6 +1672,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 ac4a00080077c08ba79571340d89ab9598890152..7e2ab36cf7807efe227004bd3e549c8d358ba7cf 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -1069,8 +1069,6 @@ void show_run_stats(void)
        else if (!terse_output)
                show_disk_util(0);
 
-       free_disk_util();
-
        free(runstats);
        free(threadstats);
 }