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)
commitff288b274a9b383046fdbda4be3067daba4d5fe8
tree9b140f23d6e3bf325ed4f8978a3ddc14c8ccd16d
parent431aa3fbf5bbe3be79809c7e603c2ed2ac64b015
tracing/ftrace: fix a memory leak in stat tracing

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>
kernel/trace/trace_stat.c