perf tools: Fix memory leak in read_ftrace_printk()
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 17 Sep 2009 08:34:23 +0000 (16:34 +0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Sep 2009 22:30:24 +0000 (00:30 +0200)
commit6706ccf8e776e51e38ffa89fe7dd20e80eb1e860
tree2e329cde9b0f1e589789327b5dec199eb146c8fa
parent40749d0ff49f99c3661b336fe5e5625207bd925a
perf tools: Fix memory leak in read_ftrace_printk()

get_tracing_file() should be paired with put_tracing_file().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <4AB1F48F.4070807@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/trace-event-info.c