aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-08-01 20:34:36 +0000
committerMichael Snyder <msnyder@vmware.com>2007-08-01 20:34:36 +0000
commitf88c79e6bbf6108db9623c37134d756acb4fa7b3 (patch)
tree86882109f51b67973cd64281e5bc3098798d65c6 /gdb/gdbserver
parent3cebf8d88289a3e28abfad8f3f811efd012850b0 (diff)
downloadgdb-f88c79e6bbf6108db9623c37134d756acb4fa7b3.zip
gdb-f88c79e6bbf6108db9623c37134d756acb4fa7b3.tar.gz
gdb-f88c79e6bbf6108db9623c37134d756acb4fa7b3.tar.bz2
2007-08-01 Michael Snyder <msnyder@access-company.com>
* remote-utils.c (putpkt_binary): Memory leak, free buf2.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/remote-utils.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index cd12c4f..eab0db2 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2007-08-01 Michael Snyder <msnyder@access-company.com>
+
+ * remote-utils.c (putpkt_binary): Memory leak, free buf2.
+
2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
* win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c
index 0e3acf4..c02f941 100644
--- a/gdb/gdbserver/remote-utils.c
+++ b/gdb/gdbserver/remote-utils.c
@@ -549,6 +549,7 @@ putpkt_binary (char *buf, int cnt)
if (write (remote_desc, buf2, p - buf2) != p - buf2)
{
perror ("putpkt(write)");
+ free (buf2);
return -1;
}