diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-08-07 12:49:29 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-08-07 12:46:39 -0400 |
commit | bd3f02212d6a457267e0c9c02c426151c436d9d4 (patch) | |
tree | eb96e54b958c0d8202e2a3c65ada5399c387f9c0 | |
parent | 7dbdee2e9a2ac42ea5135801bcc9d1a8e3f672aa (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>
-rw-r--r-- | kernel/trace/ring_buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index d4d3580a894..a330513d96c 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); |