aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/linux.c
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2014-11-14 09:23:12 +0000
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2015-01-09 00:19:11 +0000
commit420bd49b5bc34a2306eb2e88fb01ec0f0bf2ee70 (patch)
treeb5e377199acfca89af05d09ececbdd5997070a94 /src/rtos/linux.c
parenta9a5c17cf5e1f55310aa218f178997f090304172 (diff)
downloadriscv-openocd-420bd49b5bc34a2306eb2e88fb01ec0f0bf2ee70.zip
riscv-openocd-420bd49b5bc34a2306eb2e88fb01ec0f0bf2ee70.tar.gz
riscv-openocd-420bd49b5bc34a2306eb2e88fb01ec0f0bf2ee70.tar.bz2
rtos: free gdb packet allocated memory
compile tested only. Change-Id: I3bc06c212967a3ce44a875f802b554c178537d1d Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/2382 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'src/rtos/linux.c')
-rw-r--r--src/rtos/linux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rtos/linux.c b/src/rtos/linux.c
index b4403af..c28236d 100644
--- a/src/rtos/linux.c
+++ b/src/rtos/linux.c
@@ -1149,6 +1149,7 @@ int linux_gdb_thread_packet(struct target *target,
}
gdb_put_packet(connection, out_str, strlen(out_str));
+ free(out_str);
return ERROR_OK;
}