tracing/events: fix memory leak when unloading module
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 6 May 2009 02:33:04 +0000 (10:33 +0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 6 May 2009 08:38:19 +0000 (10:38 +0200)
commit2df75e415709ad12862028916c772c1f377f6a7c
tree3374a78cb06fe096e82d9e4d03ad03d048784967
parent96d17980fabeb757706d2d6db5a28580a6156bfc
tracing/events: fix memory leak when unloading module

When unloading a module, memory allocated by init_preds() and
trace_define_field() is not freed.

[ Impact: fix memory leak ]

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <4A00F6E0.3040503@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/ftrace_event.h
kernel/trace/trace_events.c
kernel/trace/trace_events_filter.c