diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2013-01-25 01:44:44 (GMT) |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-01-30 13:37:04 (GMT) |
commit | 43f8e76e6b96eb1327cff62ac1cc733a51f31068 (patch) | |
tree | adbfe9a7f3972d4cd905e55aa3e1004e72179636 /tools/perf/tests | |
parent | 13370a9b5bb88f7aa90e5be68972d95096b20a6d (diff) | |
download | linux-fsl-qoriq-43f8e76e6b96eb1327cff62ac1cc733a51f31068.tar.xz |
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>
Diffstat (limited to 'tools/perf/tests')
-rw-r--r-- | tools/perf/tests/open-syscall-all-cpus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/tests/open-syscall-all-cpus.c b/tools/perf/tests/open-syscall-all-cpus.c index 9b920a0..b0657a9 100644 --- a/tools/perf/tests/open-syscall-all-cpus.c +++ b/tools/perf/tests/open-syscall-all-cpus.c @@ -98,6 +98,7 @@ int test__open_syscall_event_on_all_cpus(void) } } + perf_evsel__free_counts(evsel); out_close_fd: perf_evsel__close_fd(evsel, 1, threads->nr); out_evsel_delete: |