]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
perf jitdump: Fix missed dso__put
authorIan Rogers <irogers@google.com>
Sat, 22 Nov 2025 08:19:20 +0000 (00:19 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 3 Dec 2025 19:07:46 +0000 (11:07 -0800)
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>
tools/perf/util/jitdump.c

index 496ca2d2bfdb8227b52d90d5ddc2bc82450aa1cc..f00814e37de966bf7c954d51f39867f988ee3e5b 100644 (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);