tracing/ftrace: fix a memory leak in stat tracing
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 6 Jan 2009 20:33:30 +0000 (21:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 7 Jan 2009 09:45:14 +0000 (10:45 +0100)
Impact: fix memory leak

This patch fixes a memory leak inside reset_stat_list(). The freeing
loop iterated only once.

Also turn the stat_list into a simple struct list_head, which
simplify the code and avoid an unused static pointer.

Reported-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found