projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc2a8e1
)
free(3) previously strndup(3)'ed diskio.dev
author
Nikos Ntarmos
<ntarmos@cs.uoi.gr>
Thu, 28 May 2009 13:42:27 +0000
(16:42 +0300)
committer
Brenden Matthews
<brenden@rty.ca>
Fri, 29 May 2009 03:27:55 +0000
(21:27 -0600)
Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Signed-off-by: Brenden Matthews <brenden@rty.ca>
src/diskio.c
patch
|
blob
|
history
diff --git
a/src/diskio.c
b/src/diskio.c
index
ce4b22b
..
0f0ff15
100644
(file)
--- a/
src/diskio.c
+++ b/
src/diskio.c
@@
-56,6
+56,8
@@
void clear_diskio_stats(void)
while (stats.next) {
cur = stats.next;
stats.next = stats.next->next;
+ if (cur->dev)
+ free(cur->dev);
free(cur);
}
}