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~2^2~15 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=a462baefd211d1847cefbaa500c8aaad2128374b;ds=sidebyside Free disk util on exit, not on stats display Signed-off-by: Jens Axboe --- diff --git a/backend.c b/backend.c index ec42a5cd..4c271ba9 100644 --- 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 2ab5f1ad..7443e665 100644 --- 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); }