From 91d2803c325882e58167accad259c6334b57bdcf Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 8 Aug 2007 18:34:28 +0000 Subject: [PATCH] 2007-08-08 Michael Snyder * top.c (command_line_input): Memory leak. --- gdb/ChangeLog | 2 ++ gdb/top.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 900d5c2b53e..998b54d5b10 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2007-08-08 Michael Snyder + * top.c (command_line_input): Memory leak. + * solib-svr4.c (open_symbol_file_object): Memory leak. (svr4_current_sos): Ditto. (enable_break): Ditto. diff --git a/gdb/top.c b/gdb/top.c index 14a7c56856d..f47c7af146c 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -1093,8 +1093,8 @@ command_line_input (char *prompt_arg, int repeat, char *annotation_suffix) } strcpy (linebuffer, history_value); p = linebuffer + strlen (linebuffer); - xfree (history_value); } + xfree (history_value); } /* If we just got an empty line, and that is supposed -- 2.30.2