Files
openocd/src/target
Antonio Borneo be083909b7 target: riscv: fix memory leak in riscv_openocd_step_impl()
The array 'wps_to_enable' is never freed.
Scan build reports:
	src/target/riscv/riscv.c:4271:6: warning: Potential leak
	of memory pointed to by 'wps_to_enable' [unix.Malloc]

Add the needed free().
While there, check if the allocation is successful.

Change-Id: I00e7ade37a43a97dcc245113ad93c48784fce609
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/9163
Reviewed-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
2025-11-12 20:34:21 +00:00
..
2025-02-16 16:24:41 +00:00
2022-09-13 22:13:58 +00:00
2025-11-02 13:50:21 +00:00
2024-06-23 09:30:43 +00:00
2024-06-23 09:30:43 +00:00
2022-09-13 22:13:58 +00:00
2025-09-06 11:41:33 +00:00
2022-09-13 22:13:58 +00:00
2025-08-02 12:59:33 +00:00
2025-09-06 11:41:51 +00:00