summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@arm.com>2026-07-02 20:51:36 +0100
committerNamhyung Kim <namhyung@kernel.org>2026-07-03 16:51:59 -0700
commit50cd0d54f1f6dd9b3de7c0ad101bd41d06206ace (patch)
tree2a61a2a78944bee38ef4f22ad89c8fda8088e241 /tools/perf/scripts/python
parent3ec1248747e40261264ce0afe4b7bd0ff6822115 (diff)
perf cs-etm: Fix thread leaks on trace queue init failure
cs_etm__init_traceid_queue() allocates the frontend and decode threads, if a later allocation fails, the error path does not drop thread reference that was already acquired. Release both thread pointers with thread__zput() on the error path, so does not leak thread references or leave stale pointers behind. Fixes: 951ccccdc715 ("perf cs-etm: Only track threads instead of PID and TIDs") Reviewed-by: James Clark <james.clark@linaro.org> Signed-off-by: Leo Yan <leo.yan@arm.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions