]> git.baikalelectronics.ru Git - kernel.git/commit
perf evsel: Fix memory leaks on evsel->counts
authorNamhyung Kim <namhyung.kim@lge.com>
Fri, 25 Jan 2013 01:44:44 +0000 (10:44 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 30 Jan 2013 13:37:04 +0000 (10:37 -0300)
commit09374cb55b85f3e046f44408eab689a327cbf874
treeadbfe9a7f3972d4cd905e55aa3e1004e72179636
parente40a75a5bc46ae29afb94214a5eefcf9cae2e0a8
perf evsel: Fix memory leaks on evsel->counts

The ->counts field was never freed in the current code.  Add
perf_evsel__free_counts() function to free it properly.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1359078284-32080-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c
tools/perf/tests/open-syscall-all-cpus.c
tools/perf/util/evsel.c
tools/perf/util/evsel.h