riscv-openocd/src/jtag
Mikhail Rasputin 70f69f8728 jtag/tcl: fix a double free of jim object
The Jim_SetResultFormatted() frees jim object earlier and the
Jim_FreeNewObj() does it second time. It breaks the memory heap.

To avoid it the Jim_IncrRefCount() + Jim_DecrRefCount() should be used
instead of the Jim_FreeNewObj() call.

Change-Id: Ifa5f38009b2d617624b5f27e916720888a3dbad9
Signed-off-by: Mikhail Rasputin <mikhail.godlike.rasputin@yandex.ru>
Reviewed-on: http://openocd.zylin.com/5724
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2020-07-08 22:05:06 +01:00
..
aice coding style: add parenthesis around the argument of sizeof 2020-05-09 14:39:19 +01:00
drivers jtag: drivers: xlnx-pcie-xvc: Add support for SWD mode. 2020-06-27 15:34:38 +01:00
hla Revert "adapter: expose HLA interface in struct adapter_driver" 2020-05-24 21:34:05 +01:00
minidriver Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
minidummy coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
zy1000 coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
Makefile.am swim: abstract the transport in stm8 target 2020-05-24 21:29:42 +01:00
adapter.c jtag: adapter: rework adapter related commands 2020-01-29 05:33:39 +00:00
commands.c jtag: print an errmsg on using jtag API for non jtag transport 2020-01-14 11:38:23 +00:00
commands.h jtag: make cmd_queue_scan_field_clone public 2018-10-16 11:58:17 +01:00
core.c swim: add new transport 2020-05-24 21:32:05 +01:00
driver.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
interface.c coding style: prototype of functions with no parameters 2020-05-09 14:39:59 +01:00
interface.h Revert "adapter: expose HLA interface in struct adapter_driver" 2020-05-24 21:34:05 +01:00
interfaces.c jtag: remove unused function adapter_driver_modules_load() 2020-05-02 15:41:21 +01:00
interfaces.h jtag: remove unused function adapter_driver_modules_load() 2020-05-02 15:41:21 +01:00
jtag.h coding style: fix space around pointer's asterisk 2020-02-24 10:30:36 +00:00
minidriver.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
startup.tcl drivers: xds110: Clean up command syntax and documentation 2020-03-24 17:17:45 +00:00
swd.h swd: get rid of jtag queue to assert/deassert srst 2020-01-14 11:15:12 +00:00
swim.c swim: add new transport 2020-05-24 21:32:05 +01:00
swim.h swim: fix adapter speed handling 2020-05-24 21:31:21 +01:00
tcl.c jtag/tcl: fix a double free of jim object 2020-07-08 22:05:06 +01:00
tcl.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00