]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
perf symbol: Add missed dso__put
authorIan Rogers <irogers@google.com>
Sat, 22 Nov 2025 08:19:16 +0000 (00:19 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 3 Dec 2025 19:07:23 +0000 (11:07 -0800)
Add missing dso__put for the dso created in maps__split_kallsyms.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/symbol.c

index 6ddbf4427c60dacec1f2a20c75215efd14fd3093..21d3e328899b7b0e36b108e692706485e0e99524 100644 (file)
@@ -987,6 +987,7 @@ static int maps__split_kallsyms(struct maps *kmaps, struct dso *dso, u64 delta,
                                dso__put(ndso);
                                return -1;
                        }
+                       dso__put(ndso);
                        ++kernel_range;
                } else if (delta) {
                        /* Kernel was relocated at boot time */