diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2013-03-15 01:48:53 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-03-15 12:06:12 -0400 |
commit | da522c17035a8415232d850b539ea60063fc7ecc (patch) | |
tree | c83a0cbde23080f1dc3679a2157793515c677a52 /tools | |
parent | 9b5b7cdc5139fdcc30ee56d9cd162da60453f6d8 (diff) |
perf tests: Fixup return path of perf record test case
Add missing perf_evlist__close() function.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1363326533-3310-6-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/tests/perf-record.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/tests/perf-record.c b/tools/perf/tests/perf-record.c index ffab5a41ff0a..72d8881873b0 100644 --- a/tools/perf/tests/perf-record.c +++ b/tools/perf/tests/perf-record.c | |||
@@ -143,7 +143,7 @@ int test__PERF_RECORD(void) | |||
143 | err = perf_evlist__mmap(evlist, opts.mmap_pages, false); | 143 | err = perf_evlist__mmap(evlist, opts.mmap_pages, false); |
144 | if (err < 0) { | 144 | if (err < 0) { |
145 | pr_debug("perf_evlist__mmap: %s\n", strerror(errno)); | 145 | pr_debug("perf_evlist__mmap: %s\n", strerror(errno)); |
146 | goto out_delete_maps; | 146 | goto out_close_evlist; |
147 | } | 147 | } |
148 | 148 | ||
149 | /* | 149 | /* |
@@ -306,6 +306,8 @@ found_exit: | |||
306 | } | 306 | } |
307 | out_err: | 307 | out_err: |
308 | perf_evlist__munmap(evlist); | 308 | perf_evlist__munmap(evlist); |
309 | out_close_evlist: | ||
310 | perf_evlist__close(evlist); | ||
309 | out_delete_maps: | 311 | out_delete_maps: |
310 | perf_evlist__delete_maps(evlist); | 312 | perf_evlist__delete_maps(evlist); |
311 | out_delete_evlist: | 313 | out_delete_evlist: |