]> Gentwo Git Trees - linux/.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)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 3 Dec 2025 19:07:40 +0000 (11:07 -0800)
commitf60efb4454b24cc944ff3eac164bb9dce9169f71
treedbc31d40f04fd9e6b7cadf5d5e659b8fcf415cb2
parentdc4d16543e60c22cd342135f321e99f2ecad3d54
perf hist: In init, ensure mem_info is put on error paths

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>
tools/perf/util/hist.c