projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Plug a few more leaks
[fio.git]
/
stat.c
diff --git
a/stat.c
b/stat.c
index fc0abe0a82b573742d781fa6cde65fc768f9d105..518d14dd13ad43dbe1dbfe02b6e83aec0a802eda 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-243,7
+243,9
@@
void init_disk_util(struct thread_data *td)
sprintf(foo, "%s", tmp);
}
sprintf(foo, "%s", tmp);
}
- td->sysfs_root = strdup(foo);
+ if (td->ioscheduler)
+ td->sysfs_root = strdup(foo);
+
disk_util_add(dev, foo);
}
disk_util_add(dev, foo);
}
@@
-524,6
+526,8
@@
void show_run_stats(void)
show_disk_util();
}
show_disk_util();
}
+
+ free(runstats);
}
static inline void add_stat_sample(struct io_stat *is, unsigned long val)
}
static inline void add_stat_sample(struct io_stat *is, unsigned long val)