diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-08-05 01:04:31 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-08-05 01:04:31 +0000 |
commit | 1ed489bd7c70382d83d3f8a4caf3abde9770f0e5 (patch) | |
tree | 480d85d39646e9217d289b58585c600e20671745 | |
parent | c1f5197edc53855a9aa0250b2e20436549bab84a (diff) | |
download | gdb-1ed489bd7c70382d83d3f8a4caf3abde9770f0e5.zip gdb-1ed489bd7c70382d83d3f8a4caf3abde9770f0e5.tar.gz gdb-1ed489bd7c70382d83d3f8a4caf3abde9770f0e5.tar.bz2 |
2007-08-04 Michael Snyder <msnyder@access-company.com>
* remote-fileio.c (remote_fileio_func_write): Memory leak.
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/remote-fileio.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 66b2701..508a731 100644 --- 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 --- 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, |