projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15e6392
)
perf top: Fix a memory leak
author
Namhyung Kim
<namhyung@gmail.com>
Tue, 27 Dec 2011 15:35:50 +0000
(
00:35
+0900)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Tue, 3 Jan 2012 16:37:19 +0000
(14:37 -0200)
The 'buf' should be freed when symbol wasn't found too.
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link:
http://lkml.kernel.org/r/1325000151-4463-3-git-send-email-namhyung@gmail.com
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-top.c
b/tools/perf/builtin-top.c
index c3836b966ccfbf85b2501f4c97288058f1439553..4f81eeb998755a992f184104dd5390ffbc49d7b5 100644
(file)
--- a/
tools/perf/builtin-top.c
+++ b/
tools/perf/builtin-top.c
@@
-351,7
+351,6
@@
static void perf_top__prompt_symbol(struct perf_top *top, const char *msg)
if (!found) {
fprintf(stderr, "Sorry, %s is not active.\n", buf);
sleep(1);
- return;
} else
perf_top__parse_source(top, found);