perf top: Fix a memory leak
authorNamhyung Kim <namhyung@gmail.com>
Tue, 27 Dec 2011 15:35:50 +0000 (00:35 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 3 Jan 2012 16:37:19 +0000 (14:37 -0200)
commit057a174a064f68bac042d618ce3c6ea3ccd9a8aa
tree55de90f0825a2de3532f323982be720bd5b7366e
parent15e6392feec311f1e409d77e1ccfe51c1d940365
perf top: Fix a memory leak

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