This is an automated email from Gerrit. Liviu Ionescu ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4552
-- gerrit commit 75dfda791511152533d197896d01acefb8d33d5e Author: Liviu Ionescu <[email protected]> Date: Tue Jun 5 17:34:47 2018 +0300 target/target.c: free semihosting member When destroying the target, if the semihosting pointer is set, free it. Change-Id: I07d34918bb3fddab1eee11219dd66f4842708ec1 Signed-off-by: Liviu Ionescu <[email protected]> diff --git a/src/target/target.c b/src/target/target.c index c9b2006..7ab13b0 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -1893,6 +1893,9 @@ static void target_destroy(struct target *target) if (target->type->deinit_target) target->type->deinit_target(target); + if (target->semihosting) + free(target->semihosting); + jtag_unregister_event_callback(jtag_enable_callback, target); struct target_event_action *teap = target->event_action; -- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
