commit | eecf272f1b2d55c1e49aadd7f65b9a433ba04c15 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Fri Oct 20 14:00:36 2006 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Fri Oct 20 14:00:36 2006 +0200 |
tree | 585ab9a1efdb95e302c91c1678552148187acf76 | |
parent | b4a6a59a939f0e6554632de311e7d1d1b7633ccf [diff] [blame] |
[PATCH] Plug a few more leaks Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/stat.c b/stat.c index fc0abe0..518d14d 100644 --- a/stat.c +++ b/stat.c
@@ -243,7 +243,9 @@ 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 @@ show_disk_util(); } + + free(runstats); } static inline void add_stat_sample(struct io_stat *is, unsigned long val)