target/stm8: add missing destroy_reg_param() 14/4814/2
authorTomas Vanek <vanekt@fbl.cz>
Tue, 18 Dec 2018 16:48:43 +0000 (17:48 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Mon, 14 Jan 2019 08:46:36 +0000 (08:46 +0000)
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>
src/target/stm8.c

index 9a57e44..39fbb50 100644 (file)
@@ -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);