diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-05-05 22:33:04 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-05-06 04:38:19 -0400 |
commit | 2df75e415709ad12862028916c772c1f377f6a7c (patch) | |
tree | 3374a78cb06fe096e82d9e4d03ad03d048784967 /include/linux/ftrace_event.h | |
parent | 96d17980fabeb757706d2d6db5a28580a6156bfc (diff) |
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>
Diffstat (limited to 'include/linux/ftrace_event.h')
-rw-r--r-- | include/linux/ftrace_event.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index 5fff40c9ff59..662c1becf367 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
@@ -116,6 +116,7 @@ struct ftrace_event_call { | |||
116 | #define MAX_FILTER_STR_VAL 128 | 116 | #define MAX_FILTER_STR_VAL 128 |
117 | 117 | ||
118 | extern int init_preds(struct ftrace_event_call *call); | 118 | extern int init_preds(struct ftrace_event_call *call); |
119 | extern void destroy_preds(struct ftrace_event_call *call); | ||
119 | extern int filter_match_preds(struct ftrace_event_call *call, void *rec); | 120 | extern int filter_match_preds(struct ftrace_event_call *call, void *rec); |
120 | extern int filter_current_check_discard(struct ftrace_event_call *call, | 121 | extern int filter_current_check_discard(struct ftrace_event_call *call, |
121 | void *rec, | 122 | void *rec, |