diff options
author | Michael Snyder <msnyder@specifix.com> | 2007-08-01 20:34:36 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2007-08-01 20:34:36 +0000 |
commit | 4ea32b9d3c74381f8953193bd4076afe07f53f27 (patch) | |
tree | a292c6fe123c460ed68b37c2b6ef32d001593d7c /gdb | |
parent | 69d1fe41fbdba2990b33af35c51420596deec06c (diff) | |
download | gdb-4ea32b9d3c74381f8953193bd4076afe07f53f27.tar.gz |
2007-08-01 Michael Snyder <msnyder@access-company.com>
* remote-utils.c (putpkt_binary): Memory leak, free buf2.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/remote-utils.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index cd12c4f03c9..eab0db2107e 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 0e3acf4fd78..c02f941f4c9 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; } |