From c0ec54d8ae8f7f933718f9d05efdde986b51f98c Mon Sep 17 00:00:00 2001 From: Tomas Vanek Date: Tue, 18 Dec 2018 17:48:43 +0100 Subject: [PATCH] target/stm8: add missing destroy_reg_param() Change-Id: Ibd8a423a4400226790cfbb9a6f113b7ea762c436 Signed-off-by: Tomas Vanek Reviewed-on: http://openocd.zylin.com/4814 Tested-by: jenkins Reviewed-by: Antonio Borneo Reviewed-by: Ake Rehnman --- src/target/stm8.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/target/stm8.c b/src/target/stm8.c index 9a57e4490..39fbb5059 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(®_params[0]); + destroy_reg_param(®_params[1]); target_free_working_area(target, erase_check_algorithm);