diff options
| author | Li RongQing <lirongqing@baidu.com> | 2026-11-04 10:20:42 +0800 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-11-07 17:31:37 -0300 |
| commit | e48155a1bbf1a867d76241c66bac270aa0509dde (patch) | |
| tree | f7784e95b2156ef6e2274bc1b759b6578ada85ac /tools/perf/scripts/python | |
| parent | a583680672ad8a3c010cfed0218042db0ffe336d (diff) | |
perf intel-bts: Free the old snapshot reference array after growing it
The snapshot reference array grows when a mapping index exceeds its
capacity. Its old entries are copied into a new allocation, but the old
array is abandoned when snapshot_refs is replaced.
Release the old array after copying it so expanding past sixteen
mappings does not leak it.
Fixes: d0170af7004dce9c ("perf tools: Add Intel BTS support")
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
