diff options
| author | 2026-07-10 16:34:37 +0800 | |
|---|---|---|
| committer | 2026-07-10 09:32:35 -0600 | |
| commit | 58a37e7317b06665e21609a2f867a9962e9e2919 (patch) | |
| tree | 294cd332db44cd3169fe9d6cea88b3aa921bd795 /tools/lib/python/kdoc/python_version.py | |
| parent | selftests/rseq: Fix a building error for riscv arch (diff) | |
selftests/riscv: ptrace: Fix memory leak of regset_data in vector tests
The regset_data buffer allocated with calloc() in the parent process
of several vector ptrace tests is never freed before returning,
causing memory leaks in:
- ptrace_v_not_enabled
- ptrace_v_early_debug
- ptrace_v_syscall_clobbering
- v_csr_invalid/ptrace_v_invalid_values
- v_csr_valid/ptrace_v_valid_values
Add free(regset_data) before kill(pid, SIGKILL) to release the
allocated buffer.
Signed-off-by: Wang Yan <wangyan01@kylinos.cn>
Reviewed-by: Sergey Matyukevich <geomatsi@gmail.com>
Link: https://patch.msgid.link/20260710083437.489648-1-wangyan01@kylinos.cn
[pjw@kernel.org: Fixed Sergey's E-mail address]
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
