From 76eeb9fbd8544fb6b8d60e7ea538e31012e8f80c Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Thu, 17 Sep 2009 16:34:23 +0800 Subject: [PATCH] --- yaml --- r: 163777 b: refs/heads/master c: 6706ccf8e776e51e38ffa89fe7dd20e80eb1e860 h: refs/heads/master i: 163775: 2bbfa46a065dacaa069accf4748e3cf6769d6441 v: v3 --- [refs] | 2 +- trunk/tools/perf/util/trace-event-info.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 89819becd706..e4dc8773879b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 40749d0ff49f99c3661b336fe5e5625207bd925a +refs/heads/master: 6706ccf8e776e51e38ffa89fe7dd20e80eb1e860 diff --git a/trunk/tools/perf/util/trace-event-info.c b/trunk/tools/perf/util/trace-event-info.c index 6c9302a7274c..1fd824c1f1c4 100644 --- a/trunk/tools/perf/util/trace-event-info.c +++ b/trunk/tools/perf/util/trace-event-info.c @@ -458,7 +458,7 @@ static void read_proc_kallsyms(void) static void read_ftrace_printk(void) { unsigned int size, check_size; - const char *path; + char *path; struct stat st; int ret; @@ -468,14 +468,15 @@ static void read_ftrace_printk(void) /* not found */ size = 0; write_or_die(&size, 4); - return; + goto out; } size = get_size(path); write_or_die(&size, 4); check_size = copy_file(path); if (size != check_size) die("error in size of file '%s'", path); - +out: + put_tracing_file(path); } static struct tracepoint_path *