]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf tests kallsyms: Fix missed map__put()
authorIan Rogers <irogers@google.com>
Wed, 10 Dec 2025 19:01:41 +0000 (11:01 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Jan 2026 20:29:15 +0000 (17:29 -0300)
Issue was caught by leak sanitizer and the test robot.

Fixes: 34e271ae55382fbd ("perf test: Add kallsyms split test")
Reported-by: kernel test robot <oliver.sang@intel.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Closes: https://lore.kernel.org/oe-lkp/202512101502.f3819cd3-lkp@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/kallsyms-split.c

index bbbc66957e5d0453b8c8f2a7ae102fb8d045d85d..117ed3b70f630a9788f411411e3d61c3233084ab 100644 (file)
@@ -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;