OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0266a2e
)
2007-08-01 Michael Snyder <msnyder@access-company.com>
author
msnyder
<msnyder>
Wed, 1 Aug 2007 20:34:36 +0000
(20:34 +0000)
committer
msnyder
<msnyder>
Wed, 1 Aug 2007 20:34:36 +0000
(20:34 +0000)
* remote-utils.c (putpkt_binary): Memory leak, free buf2.
gdb/gdbserver/ChangeLog
patch
|
blob
|
history
gdb/gdbserver/remote-utils.c
patch
|
blob
|
history
diff --git
a/gdb/gdbserver/ChangeLog
b/gdb/gdbserver/ChangeLog
index
cd12c4f
..
eab0db2
100644
(file)
--- 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
(file)
--- 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;
}