tracing/stat: Fix seqfile memory leak
commit636eacee3b0c76915151db37203cc624becb6d7b
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 23 Jul 2009 03:29:47 +0000 (23 11:29 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 23 Jul 2009 13:53:55 +0000 (23 09:53 -0400)
tree99251e7d38d22b3f5b3808d797757840a597349b
parent87827111a5538633b18e5c641ced673c4c2bb6ce
tracing/stat: Fix seqfile memory leak

Every time we cat a trace_stat file, we leak memory allocated by
seq_open().

Also fix memory leak in a failure path in tracing_stat_open().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <4A67D92B.4060704@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_stat.c