openocd/src/target/riscv
Tomas Vanek f735faa931 target,flash: allow target_free_working_area on NULL area pointer
Standard C library free() allows NULL pointer as a parameter.

Change target_free_working_area() to conform this convention.

Remove NULL pointer tests before target_free_working_area() calls.

While on it add missing setting pointer to NULL after target_free_working_area().

Change-Id: I7c692ab04a9933398ba5bc614723ad0bdecb87b3
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/6712
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2021-12-03 21:59:20 +00:00
..
asm.h Upstream tons of RISC-V changes. 2020-10-14 05:43:05 +01:00
batch.c Upstream a whole host of RISC-V changes. 2021-10-25 16:12:05 +00:00
batch.h Upstream tons of RISC-V changes. 2020-10-14 05:43:05 +01:00
debug_defines.h riscv: Regenerated debug_defines.h and encoding.h 2021-11-20 14:39:13 +00:00
encoding.h riscv: Regenerated debug_defines.h and encoding.h 2021-11-20 14:39:13 +00:00
gdb_regs.h Upstream tons of RISC-V changes. 2020-10-14 05:43:05 +01:00
Makefile.am Add RISC-V support. 2018-07-24 13:07:26 +01:00
opcodes.h Upstream a whole host of RISC-V changes. 2021-10-25 16:12:05 +00:00
program.c Upstream tons of RISC-V changes. 2020-10-14 05:43:05 +01:00
program.h Upstream a whole host of RISC-V changes. 2021-10-25 16:12:05 +00:00
riscv_semihosting.c Upstream a whole host of RISC-V changes. 2021-10-25 16:12:05 +00:00
riscv-011.c Upstream a whole host of RISC-V changes. 2021-10-25 16:12:05 +00:00
riscv-013.c target,flash: allow target_free_working_area on NULL area pointer 2021-12-03 21:59:20 +00:00
riscv.c riscv: Clear type 6 triggers on connecting. 2021-11-20 14:39:52 +00:00
riscv.h Upstream a whole host of RISC-V changes. 2021-10-25 16:12:05 +00:00