aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-08-05 01:04:31 +0000
committerMichael Snyder <msnyder@vmware.com>2007-08-05 01:04:31 +0000
commit1ed489bd7c70382d83d3f8a4caf3abde9770f0e5 (patch)
tree480d85d39646e9217d289b58585c600e20671745 /gdb/remote-fileio.c
parent2007-08-04 Michael Snyder <msnyder@access-company.com> (diff)
downloadbinutils-gdb-1ed489bd7c70382d83d3f8a4caf3abde9770f0e5.tar.gz
binutils-gdb-1ed489bd7c70382d83d3f8a4caf3abde9770f0e5.tar.bz2
binutils-gdb-1ed489bd7c70382d83d3f8a4caf3abde9770f0e5.zip
2007-08-04 Michael Snyder <msnyder@access-company.com>
* remote-fileio.c (remote_fileio_func_write): Memory leak.
Diffstat (limited to 'gdb/remote-fileio.c')
-rw-r--r--gdb/remote-fileio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/remote-fileio.c b/gdb/remote-fileio.c
index 93ad05c86b1..42c915bf96a 100644
--- 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,