summaryrefslogtreecommitdiff
path: root/kernel/trace
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2009-08-07 12:49:29 +0200
committerSteven Rostedt <rostedt@goodmis.org>2009-08-07 12:46:39 -0400
commitbd3f02212d6a457267e0c9c02c426151c436d9d4 (patch)
treeeb96e54b958c0d8202e2a3c65ada5399c387f9c0 /kernel/trace
parent7dbdee2e9a2ac42ea5135801bcc9d1a8e3f672aa (diff)
ring-buffer: Fix memleak in ring_buffer_free()
I noticed oprofile memleaked in linux-2.6 current tree, and tracked this ring-buffer leak. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> LKML-Reference: <4A7C06B9.2090302@gmail.com> Cc: stable@kernel.org Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/ring_buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index d4d3580a894a..a330513d96ce 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -735,6 +735,7 @@ ring_buffer_free(struct ring_buffer *buffer)
put_online_cpus();
+ kfree(buffer->buffers);
free_cpumask_var(buffer->cpumask);
kfree(buffer);