summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan D. Brunelle <alan.brunelle@hp.com>2010-03-22 10:20:21 -0400
committerAlan D. Brunelle <alan.brunelle@hp.com>2010-03-22 10:20:21 -0400
commitc615ce2effdf4d3e75b503dd30617356c2bdef92 (patch)
treea5719afb2c7a1bd3718f5c15ea81e195d5cbb52f
parent0d76d14f46195eb4295c35bf15531890378c7684 (diff)
downloadblktrace-c615ce2effdf4d3e75b503dd30617356c2bdef92.tar.gz
blktrace-c615ce2effdf4d3e75b503dd30617356c2bdef92.tar.bz2
Corrected memory leak in btt/p_live.c
Forgot to free record when updating rather than adding.
-rw-r--r--btt/p_live.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/btt/p_live.c b/btt/p_live.c
index 8bbb893..17f06bb 100644
--- 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;
}