From: Eric Dumazet Date: Fri, 7 Aug 2009 10:49:29 +0000 (+0200) Subject: ring-buffer: Fix memleak in ring_buffer_free() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bd3f02212d6a457267e0c9c02c426151c436d9d4;p=linux-beck.git 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 LKML-Reference: <4A7C06B9.2090302@gmail.com> Cc: stable@kernel.org Signed-off-by: Steven Rostedt --- 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);