diff options
author | Sohaib Mohamed <[email protected]> | 2021-11-12 22:11:33 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-11-13 18:11:51 -0300 |
commit | 88e48238d53682281c9de2a0b65d24d3b64542a0 (patch) | |
tree | 6d367d3468a0a3ef5de69b6fef95814f23ef13fb /net/lapb/lapb_timer.c | |
parent | 3442b5e05a7b90dcf3fd74c4d5a4a9796358eef2 (diff) |
perf bench futex: Fix memory leak of perf_cpu_map__new()
ASan reports memory leaks while running:
$ sudo ./perf bench futex all
The leaks are caused by perf_cpu_map__new not being freed.
This patch adds the missing perf_cpu_map__put since it calls
cpu_map_delete implicitly.
Fixes: 9c3516d1b850ea93 ("libperf: Add perf_cpu_map__new()/perf_cpu_map__read() functions")
Signed-off-by: Sohaib Mohamed <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: André Almeida <[email protected]>
Cc: Darren Hart <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Sohaib Mohamed <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions