aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vanek <vanekt@fbl.cz>2018-12-18 17:48:43 +0100
committerTomas Vanek <vanekt@fbl.cz>2019-01-14 08:46:36 +0000
commitc0ec54d8ae8f7f933718f9d05efdde986b51f98c (patch)
tree2d9686c8c4b567c386c52e2a201fa1cd34f3377f
parent87adca299d7971f1adb5a502be29b9a120678443 (diff)
downloadriscv-openocd-c0ec54d8ae8f7f933718f9d05efdde986b51f98c.zip
riscv-openocd-c0ec54d8ae8f7f933718f9d05efdde986b51f98c.tar.gz
riscv-openocd-c0ec54d8ae8f7f933718f9d05efdde986b51f98c.tar.bz2
target/stm8: add missing destroy_reg_param()
Change-Id: Ibd8a423a4400226790cfbb9a6f113b7ea762c436 Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/4814 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Ake Rehnman <ake.rehnman@gmail.com>
-rw-r--r--src/target/stm8.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/stm8.c b/src/target/stm8.c
index 9a57e44..39fbb50 100644
--- a/src/target/stm8.c
+++ b/src/target/stm8.c
@@ -1805,6 +1805,7 @@ static int stm8_blank_check_memory(struct target *target,
destroy_mem_param(&mem_params[0]);
destroy_mem_param(&mem_params[1]);
destroy_reg_param(&reg_params[0]);
+ destroy_reg_param(&reg_params[1]);
target_free_working_area(target, erase_check_algorithm);