Skip to contentSkip to conversation

perf tests kallsyms: Fix missed map__put

PATCH Applied Ian Rogers 3 participants 3 messages Dec 10, 2025 – Jan 20 perf events

lore
Share & tools
lore

Ian Rogers

author reviewer
#0 lore raw

PATCH 1/1 perf tests kallsyms: Fix missed map__put

Issue was caught by leak sanitizer and the test robot.

Fixes 34e271ae5538 ("perf test: Add kallsyms split test")
---
 tools/perf/tests/kallsyms-split.c | 1 +
 1 file changed, 1 insertion(+)
tools/perf/tests/kallsyms-split.c +1 -0
index bbbc66957e5d..117ed3b70f63 100644
@@ -148,6 +148,7 @@ static int test__kallsyms_split(struct test_suite *test __maybe_unused,
 	ret = TEST_OK;
 
 out:
+	map__put(map);
 	remove_proc_dir(0);
 	machine__exit(&m);
 	return ret;
Signature · 1 line
2.52.0.223.gf5cc29aaa4-goog
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Ian Rogers

Issue was caught by leak sanitizer and the test robot.

Fixes 34e271ae5538 ("perf test: Add kallsyms split test")
---
  tools/perf/tests/kallsyms-split.c | 1 +
  1 file changed, 1 insertion(+)
tools/perf/tests/kallsyms-split.c +0 -0
index bbbc66957e5d..117ed3b70f63 100644

tools/perf/tests/kallsyms-split.c static int test__kallsyms_split(struct test_suite *test __maybe_unused, · line 154

Quoted 7 lines
tools/perf/tests/kallsyms-split.c +1 -0
@@ -148,6 +148,7 @@ static int test__kallsyms_split(struct test_suite *test __maybe_unused,
  	ret = TEST_OK;
 
  out:
+	map__put(map);
  	remove_proc_dir(0);
  	machine__exit(&m);
  	return ret;
maintainer Applied
#2 lore raw
Quoted 8 lines · James Clark
Quoted 6 lines · Ian Rogers

Issue was caught by leak sanitizer and the test robot.

Fixes 34e271ae5538 ("perf test: Add kallsyms split test")
Quoted 10 lines

tools/perf/tests/kallsyms-split.c static int test__kallsyms_split(struct test_suite *test __maybe_unused, · line 153

Quoted 8 lines

+++ b/tools/perf/tests/kallsyms-split.c

tools/perf/tests/kallsyms-split.c +1 -0
@@ -148,6 +148,7 @@ static int test__kallsyms_split(struct test_suite *test __maybe_unused,
  	ret = TEST_OK;
  out:
+	map__put(map);
  	remove_proc_dir(0);
  	machine__exit(&m);
  	return ret;

Thanks, applied to perf-tools-next,

- Arnaldo