diff options
| author | Li RongQing <lirongqing@baidu.com> | 2026-11-04 10:19:51 +0800 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-11-07 17:31:37 -0300 |
| commit | a583680672ad8a3c010cfed0218042db0ffe336d (patch) | |
| tree | f057e75b04d9956a01d668e5aadf9d0511b1f404 /tools/perf/scripts/python | |
| parent | 4c673fe9d9c3c1fd8f3c0b37f06c816e60f4bb43 (diff) | |
perf intel-pt: Free the old snapshot reference array after growing it
Growing snapshot_refs allocates a new array and copies the old entries,
then overwrites the only pointer to the old array. Snapshot recording
with more than sixteen AUX mappings leaks that allocation on expansion.
Free the old array after copying its entries. The reference buffers are
still owned by the entries copied into the replacement array.
Fixes: 90e457f7be087005 ("perf tools: Add Intel PT support")
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
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: James Clark <james.clark@linaro.org>
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
