[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A7C06B9.2090302@gmail.com>
Date: Fri, 07 Aug 2009 12:49:29 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Steven Rostedt <rostedt@...dmis.org>
CC: linux kernel <linux-kernel@...r.kernel.org>, stable@...nel.org
Subject: [PATCH] ring-buffer: Fix memleak in ring_buffer_free()
I noticed oprofile memleaked in linux-2.6 current tree,
and tracked this ring-buffer leak.
This is a stable candidate.
[PATCH] ring-buffer: Fix memleak in ring_buffer_free()
Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
---
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index bf27bb7..c1d874e 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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists