From: Namhyung Kim Date: Fri, 15 Mar 2013 05:48:53 +0000 (+0900) Subject: perf tests: Fixup return path of perf record test case X-Git-Tag: upstream/snapshot3+hdmi~5272^2~16^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da522c17035a8415232d850b539ea60063fc7ecc;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git perf tests: Fixup return path of perf record test case Add missing perf_evlist__close() function. Signed-off-by: Namhyung Kim Cc: David Ahern Cc: Ingo Molnar Cc: Jiri Olsa Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1363326533-3310-6-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/tests/perf-record.c b/tools/perf/tests/perf-record.c index ffab5a4..72d8881 100644 --- a/tools/perf/tests/perf-record.c +++ b/tools/perf/tests/perf-record.c @@ -143,7 +143,7 @@ int test__PERF_RECORD(void) err = perf_evlist__mmap(evlist, opts.mmap_pages, false); if (err < 0) { pr_debug("perf_evlist__mmap: %s\n", strerror(errno)); - goto out_delete_maps; + goto out_close_evlist; } /* @@ -306,6 +306,8 @@ found_exit: } out_err: perf_evlist__munmap(evlist); +out_close_evlist: + perf_evlist__close(evlist); out_delete_maps: perf_evlist__delete_maps(evlist); out_delete_evlist: