From: Jens Axboe Date: Fri, 30 Mar 2012 06:33:27 +0000 (+0200) Subject: Free disk util on exit, not on stats display X-Git-Tag: gfio-0.1~17 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=d44256b0094fc2e0516adfaf5126d2de9dc951e7 Free disk util on exit, not on stats display Signed-off-by: Jens Axboe --- diff --git a/backend.c b/backend.c index 968b5221..75cb18b8 100644 --- 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 ac4a0008..7e2ab36c 100644 --- 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); }