aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2018-05-30 02:56:22 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2018-05-30 02:56:22 -0700
commitd3c9ed508dbf1f32f2e7ed5e5834d6159b9dcad0 (patch)
tree04d55d735b18f0ddbd6cdeb309e1fde0035ab1fb
parent4fc0e7ac0d9eabaa7d834d8e5e7d578f29ce96d7 (diff)
downloadriscv-openocd-d3c9ed508dbf1f32f2e7ed5e5834d6159b9dcad0.zip
riscv-openocd-d3c9ed508dbf1f32f2e7ed5e5834d6159b9dcad0.tar.gz
riscv-openocd-d3c9ed508dbf1f32f2e7ed5e5834d6159b9dcad0.tar.bz2
iwhoops
-rw-r--r--src/server/gdb_server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 39ed682..1c0f732 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -484,6 +484,7 @@ int gdb_put_packet(struct connection *connection, char *buffer, int len)
memset(msg, '\0', len+1);
strncpy(msg, buffer, len);
LOG_DEBUG("msg: %s", msg);
+ free(msg);
/* we sent some data, reset timer for keep alive messages */
kept_alive();