2007-08-04 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Sun, 5 Aug 2007 01:04:31 +0000 (01:04 +0000)
committerMichael Snyder <msnyder@vmware.com>
Sun, 5 Aug 2007 01:04:31 +0000 (01:04 +0000)
* remote-fileio.c (remote_fileio_func_write): Memory leak.

gdb/ChangeLog
gdb/remote-fileio.c

index 66b2701c144baf6d78b495510e08cf21a6435054..508a73149521288fdf387581e3e5f591dc9e7bf0 100644 (file)
@@ -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.
index 93ad05c86b1f788ce25288bb7b15552f9a969aad..42c915bf96a268c365dbccc03da5b9ec41b4731f 100644 (file)
@@ -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,