From: Ian Rogers Date: Sat, 22 Nov 2025 08:19:20 +0000 (-0800) Subject: perf jitdump: Fix missed dso__put X-Git-Tag: v6.19-rc1~61^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1da7c10b2e36541a9c74bc6cf04992f089fa7e00;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Arnaldo Carvalho de Melo Signed-off-by: Namhyung Kim --- diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c index 496ca2d2bfdb8..f00814e37de96 100644 --- a/tools/perf/util/jitdump.c +++ b/tools/perf/util/jitdump.c @@ -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);