Re: [PATCH v1] perf tests kallsyms: Fix missed map__put
From: Arnaldo Carvalho de Melo
Date: Tue Jan 20 2026 - 15:30:11 EST
On Fri, Dec 12, 2025 at 05:19:47PM +0200, James Clark wrote:
> On 10/12/2025 21:01, Ian Rogers wrote:
> > Issue was caught by leak sanitizer and the test robot.
> > Reported-by: kernel test robot <oliver.sang@xxxxxxxxx>
> > Closes: https://lore.kernel.org/oe-lkp/202512101502.f3819cd3-lkp@xxxxxxxxx
> > Fixes: 34e271ae5538 ("perf test: Add kallsyms split test")
> > Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
> > +++ b/tools/perf/tests/kallsyms-split.c
> > @@ -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 <james.clark@xxxxxxxxxx>
Thanks, applied to perf-tools-next,
- Arnaldo