perf tests kallsyms: Fix missed map__put
Ian Rogers
reviewerPATCH 1/1 perf tests kallsyms: Fix missed map__put
Issue was caught by leak sanitizer and the test robot.
Reported-by kernel test robot <[email protected]>
Fixes 34e271ae5538 ("perf test: Add kallsyms split test")
Signed-off-by Ian Rogers <[email protected]>
--- tools/perf/tests/kallsyms-split.c | 1 + 1 file changed, 1 insertion(+)
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;
Signature · 1 line
2.52.0.223.gf5cc29aaa4-goog
Quoted 15 lines · Ian Rogers
Issue was caught by leak sanitizer and the test robot.
Reported-by kernel test robot <[email protected]>Fixes 34e271ae5538 ("perf test: Add kallsyms split test")Signed-off-by Ian Rogers <[email protected]>--- tools/perf/tests/kallsyms-split.c | 1 + 1 file changed, 1 insertion(+)tools/perf/tests/kallsyms-split.c +0
-0
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;
Reviewed-by James Clark <[email protected]>
Quoted 8 lines · James Clark
Quoted 6 lines · Ian Rogers
Issue was caught by leak sanitizer and the test robot.
Reported-by kernel test robot <[email protected]>Fixes 34e271ae5538 ("perf test: Add kallsyms split test")Signed-off-by Ian Rogers <[email protected]>
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.ctools/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;Reviewed-by James Clark <[email protected]>
Thanks, applied to perf-tools-next,
- Arnaldo