Skip to content

Commit 1da7c10

Browse files
captain5050namhyung
authored andcommitted
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>
1 parent 69d2472 commit 1da7c10

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tools/perf/util/jitdump.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,8 @@ static int jit_repipe_code_load(struct jit_buf_desc *jd, union jr_entry *jr)
547547

548548
if (dso)
549549
dso__set_hit(dso);
550+
551+
dso__put(dso);
550552
}
551553
out:
552554
perf_sample__exit(&sample);

0 commit comments

Comments
 (0)