OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
350df05
)
2007-08-04 Michael Snyder <msnyder@access-company.com>
author
msnyder
<msnyder>
Sun, 5 Aug 2007 01:04:30 +0000
(
01:04
+0000)
committer
msnyder
<msnyder>
Sun, 5 Aug 2007 01:04:30 +0000
(
01:04
+0000)
* remote-fileio.c (remote_fileio_func_write): Memory leak.
gdb/ChangeLog
patch
|
blob
|
history
gdb/remote-fileio.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index
66b2701
..
508a731
100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-1,5
+1,7
@@
2007-08-04 Michael Snyder <msnyder@access-company.com>
+ * remote-fileio.c (remote_fileio_func_write): Memory leak.
+
* breakpoint.c (print_one_breakpoint): Off by one error.
* tracepoint.c (add_register): Off by one error.
diff --git
a/gdb/remote-fileio.c
b/gdb/remote-fileio.c
index
93ad05c
..
42c915b
100644
(file)
--- a/
gdb/remote-fileio.c
+++ b/
gdb/remote-fileio.c
@@
-850,6
+850,7
@@
remote_fileio_func_write (char *buf)
{
case FIO_FD_CONSOLE_IN:
remote_fileio_badfd ();
+ xfree (buffer);
return;
case FIO_FD_CONSOLE_OUT:
ui_file_write (target_fd == 1 ? gdb_stdtarg : gdb_stdtargerr,