Files
sw_openocd/src/target
Antonio Borneo 8c41070415 target: riscv: fix double free() in parse_reg_ranges()
The buffer 'args' is allocated and freed in the caller function
parse_reg_ranges().
There is no reason to free it, only in some special case, in the
called function parse_reg_ranges_impl().
Scan build reports:
	src/target/riscv/riscv.c:4537:2: warning: Attempt to free
	released memory [unix.Malloc]

Drop the free() in the called function.

Change-Id: I2e308670c502f8e140603b4e5c16fc568088e1a8
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/9164
Reviewed-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2025-11-12 20:34:40 +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