]> git.sur5r.net Git - openocd/commit
jtag/core, target: unregister JTAG events
authorTomas Vanek <vanekt@fbl.cz>
Wed, 21 Mar 2018 23:20:15 +0000 (00:20 +0100)
committerMatthias Welwarsky <matthias@welwarsky.de>
Fri, 30 Mar 2018 09:15:23 +0000 (10:15 +0100)
commit6eba3777fca4a3e8c0d91dce9caedfeb9c08dc67
treea8b46c489c58c2545af44fa8c6695baa27e26419
parent37deb37593c20c05a4bb29e1d88671a1f7ec6548
jtag/core, target: unregister JTAG events

Also call adapter_exit() before command_exit() as the latter releases
Jim interpreter so JTAG events should be released before.

Fixes memory leak reported by valgrind

Change-Id: I493f3fcba34ea2b4234148e79a4e329c866e0f05
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4474
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
src/jtag/core.c
src/openocd.c
src/target/target.c