projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d76d14
)
Corrected memory leak in btt/p_live.c
author
Alan D. Brunelle
<alan.brunelle@hp.com>
Mon, 22 Mar 2010 14:20:21 +0000
(10:20 -0400)
committer
Alan D. Brunelle
<alan.brunelle@hp.com>
Mon, 22 Mar 2010 14:20:21 +0000
(10:20 -0400)
Forgot to free record when updating rather than adding.
btt/p_live.c
patch
|
blob
|
blame
|
history
diff --git
a/btt/p_live.c
b/btt/p_live.c
index 8bbb8936edc7416b45532c3a6192d4427b9ac8c3..17f06bb49e6dd438643ed4cd3af21ef7667dc93c 100644
(file)
--- a/
btt/p_live.c
+++ b/
btt/p_live.c
@@
-86,6
+86,7
@@
static void __p_live_add(struct rb_root *root, __u64 dt, __u64 ct)
list_del(&plp->head);
rb_erase(&plp->rb_node, root);
__p_live_add(root, min(plp->dt, dt), max(plp->ct, ct));
+ free(plp);
return;
}