X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=stat.c;h=518d14dd13ad43dbe1dbfe02b6e83aec0a802eda;hb=7c124ac153eebf48bc85f9033ae06fd7152e4216;hp=fc0abe0a82b573742d781fa6cde65fc768f9d105;hpb=b4a6a59a939f0e6554632de311e7d1d1b7633ccf;p=fio.git diff --git a/stat.c b/stat.c index fc0abe0a..518d14dd 100644 --- a/stat.c +++ b/stat.c @@ -243,7 +243,9 @@ void init_disk_util(struct thread_data *td) sprintf(foo, "%s", tmp); } - td->sysfs_root = strdup(foo); + if (td->ioscheduler) + td->sysfs_root = strdup(foo); + disk_util_add(dev, foo); } @@ -524,6 +526,8 @@ void show_run_stats(void) show_disk_util(); } + + free(runstats); } static inline void add_stat_sample(struct io_stat *is, unsigned long val)