diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2014-11-14 09:23:12 +0000 |
---|---|---|
committer | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2015-01-09 00:19:11 +0000 |
commit | 420bd49b5bc34a2306eb2e88fb01ec0f0bf2ee70 (patch) | |
tree | b5e377199acfca89af05d09ececbdd5997070a94 /src/rtos/linux.c | |
parent | a9a5c17cf5e1f55310aa218f178997f090304172 (diff) | |
download | riscv-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.c | 1 |
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; } |