Skip to content

Commit b4e4439

Browse files
captain5050namhyung
authored andcommitted
perf symbol: Add missed dso__put
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>
1 parent b3ea721 commit b4e4439

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/perf/util/symbol.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,7 @@ static int maps__split_kallsyms(struct maps *kmaps, struct dso *dso, u64 delta,
987987
dso__put(ndso);
988988
return -1;
989989
}
990+
dso__put(ndso);
990991
++kernel_range;
991992
} else if (delta) {
992993
/* Kernel was relocated at boot time */

0 commit comments

Comments
 (0)