tracing/filters: Fix memory leak when setting a filter
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 13 Oct 2009 01:28:57 +0000 (09:28 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 13 Oct 2009 06:05:17 +0000 (08:05 +0200)
commit8ad807318fcd62aba0e18c7c7fbfcc1af3fcdbab
tree2e2d934ae03cc7e567b35bbca0de58e105a3b6b6
parenta813a159766ee9d36aa1fc717c60d63325a6d077
tracing/filters: Fix memory leak when setting a filter

Every time we set a filter, we leak memory allocated by
postfix_append_operand() and postfix_append_op().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
Cc: <stable@kernel.org> # for v2.6.31.x
LKML-Reference: <4AD3D7D9.4070400@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_events_filter.c