Skip to content

Commit

Permalink
ring-buffer: Fix memleak in ring_buffer_free()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and Steven Rostedt committed Aug 7, 2009
1 parent 7dbdee2 commit bd3f022
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ ring_buffer_free(struct ring_buffer *buffer)

put_online_cpus();

kfree(buffer->buffers);
free_cpumask_var(buffer->cpumask);

kfree(buffer);
Expand Down

0 comments on commit bd3f022

Please sign in to comment.