From 1ed489bd7c70382d83d3f8a4caf3abde9770f0e5 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Sun, 5 Aug 2007 01:04:31 +0000 Subject: [PATCH] 2007-08-04 Michael Snyder * remote-fileio.c (remote_fileio_func_write): Memory leak. --- gdb/ChangeLog | 2 ++ gdb/remote-fileio.c | 1 + 2 files changed, 3 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 66b2701c144..508a7314952 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2007-08-04 Michael Snyder + * 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 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, -- 2.30.2