perf parse-event: Release cpu_map refcount if evsel alloc failed
authorNamhyung Kim <namhyung@kernel.org>
Thu, 17 Sep 2020 06:02:18 +0000 (15:02 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Sep 2020 16:28:15 +0000 (13:28 -0300)
commit0f1b550e29c1f9522f0a7a11ee2cf95d33a98d79
treef2566309d974c30c2e422f205c4387908c877689
parent5d680be3b014d5836ad6c2a8bdda70cce89dbfc8
perf parse-event: Release cpu_map refcount if evsel alloc failed

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20200917060219.1287863-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c