diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-06-13 21:13:54 +0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-06-17 15:21:03 +0300 |
| commit | 61a21d11afd8dd83b2260ae00541bed62a843219 (patch) | |
| tree | ab38f16fcee4cd20271f0fc41dc9ecdca0ae94fb /scripts/Makefile.thinlto | |
| parent | 9a989e60cc6e29d98aed2087425cba53bf4b392d (diff) | |
| download | linux-61a21d11afd8dd83b2260ae00541bed62a843219.tar.xz | |
perf c2c: Free format list entries when c2c_hists__init() fails
When c2c_hists__init() fails partway through hpp_list__parse(),
dynamically allocated format structures that were already added to
hists->list are leaked because he__get_c2c_hists() frees the hists
container without first unregistering the format entries.
Call perf_hpp__reset_output_field() before freeing the hists container
on the error path, matching what c2c_he_free() already does on the
normal destruction path.
Fixes: 17a7c5946d79a12c ("perf c2c report: Decode c2c_stats for hist entries")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
