aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/event-top.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e9844f2..2457971 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,7 @@
2007-08-13 Michael Snyder <msnyder@access-company.com>
+ * event-top.c (command_line_handler): Memory leak.
+
* mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
No need to make copy.
diff --git a/gdb/event-top.c b/gdb/event-top.c
index b9124ec..37f2a1b 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -754,8 +754,8 @@ command_line_handler (char *rl)
}
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