perf map: Fix map reference count issues
authorIan Rogers <irogers@google.com>
Thu, 29 Feb 2024 06:20:48 +0000 (22:20 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 1 Mar 2024 02:06:00 +0000 (18:06 -0800)
commitec42d3d56819688537ec7ee37ce97f695fb8e6d7
tree8a05182638b73f6c18f6ab99b14ab20357d860c9
parent1947b92464c3268381604bbe2ac977a3fd78192f
perf map: Fix map reference count issues

The find will get the map, ensure puts are done on all paths.

Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240229062048.558799-1-irogers@google.com
tools/perf/util/maps.c
tools/perf/util/probe-event.c