Skip to content

Commit a58807a

Browse files
captain5050acmel
authored andcommitted
perf tests kallsyms: Fix missed map__put()
Issue was caught by leak sanitizer and the test robot. Fixes: 34e271a ("perf test: Add kallsyms split test") Reported-by: kernel test robot <[email protected]> Reviewed-by: James Clark <[email protected]> Signed-off-by: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Closes: https://lore.kernel.org/oe-lkp/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 4906ecc commit a58807a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/perf/tests/kallsyms-split.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ static int test__kallsyms_split(struct test_suite *test __maybe_unused,
148148
ret = TEST_OK;
149149

150150
out:
151+
map__put(map);
151152
remove_proc_dir(0);
152153
machine__exit(&m);
153154
return ret;

0 commit comments

Comments
 (0)