perf jitdump: Fix missed dso__put

Reference count checking caught a missing dso__put following a
machine__findnew_dso_id.

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>
This commit is contained in:
Ian Rogers 2025-11-22 00:19:20 -08:00 committed by Namhyung Kim
parent 69d247295a
commit 1da7c10b2e

View File

@ -547,6 +547,8 @@ static int jit_repipe_code_load(struct jit_buf_desc *jd, union jr_entry *jr)
if (dso)
dso__set_hit(dso);
dso__put(dso);
}
out:
perf_sample__exit(&sample);