]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf hist: In init, ensure mem_info is put on error paths
authorIan Rogers <irogers@google.com>
Sat, 22 Nov 2025 08:19:18 +0000 (00:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:32 +0000 (14:03 +0100)
commit654841dd211b006803a5f8a4005f03010e0fdbdc
tree6b75a1a1297d6b33622e965ed5362e93730acfd5
parentbadf751a785d624f2ab326f7d00d11a5a78842dc
perf hist: In init, ensure mem_info is put on error paths

[ Upstream commit f60efb4454b24cc944ff3eac164bb9dce9169f71 ]

Rather than exit the internal map_symbols directly, put the mem-info
that does this and also lowers the reference count on the mem-info
itself otherwise the mem-info is being leaked.

Fixes: 56e144fe98260a0f ("perf mem_info: Add and use map_symbol__exit and addr_map_symbol__exit")
Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/util/hist.c