perf tools: Fix a memory leak on perf_read_values_destroy
authorNamhyung Kim <namhyung@gmail.com>
Mon, 12 Dec 2011 15:16:53 +0000 (00:16 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Dec 2011 15:41:34 +0000 (13:41 -0200)
commit0161d82e9b740caa90f508138d1ae1b9d981b6d3
tree4a4fad76eaf976fcf908a0e31bee9955d540ee65
parentd74c896b7e3250a07f7d0315eecdd2ae1a7bc3c3
perf tools: Fix a memory leak on perf_read_values_destroy

After freeing each elements of the @values->value, we should free itself
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/1323703017-6060-5-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/util/values.c