aboutsummaryrefslogtreecommitdiff
path: root/src/openocd.c
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2018-05-17 16:47:48 -0700
committerGitHub <noreply@github.com>2018-05-17 16:47:48 -0700
commitbb86173f37c11d1ea305b3e45d6abdaf3d239512 (patch)
tree14353fe637b742813419aa76fd06a0bbc9643914 /src/openocd.c
parent3344db3d0aef8f3b8c033cb2a098e9ca15e8615c (diff)
parent712d6a5c3aca04e4181e471f796b2da6e04b49ca (diff)
downloadriscv-openocd-bb86173f37c11d1ea305b3e45d6abdaf3d239512.zip
riscv-openocd-bb86173f37c11d1ea305b3e45d6abdaf3d239512.tar.gz
riscv-openocd-bb86173f37c11d1ea305b3e45d6abdaf3d239512.tar.bz2
Merge pull request #251 from riscv/from_upstream
From upstream
Diffstat (limited to 'src/openocd.c')
-rw-r--r--src/openocd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openocd.c b/src/openocd.c
index 902528d..f084dd4 100644
--- a/src/openocd.c
+++ b/src/openocd.c
@@ -359,6 +359,10 @@ int openocd_main(int argc, char *argv[])
unregister_all_commands(cmd_ctx, NULL);
+ /* free all DAP and CTI objects */
+ dap_cleanup_all();
+ arm_cti_cleanup_all();
+
adapter_quit();
/* Shutdown commandline interface */