diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-08-13 23:02:08 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-08-13 23:02:08 +0000 |
commit | f5b73fbba3bdceaefcd4ab1cc7c6427cac362835 (patch) | |
tree | 78d8859d7d62e9f2c78bf106e021575faddc0990 | |
parent | b538c2345375bc023ee1da41213db86e267ddd1a (diff) | |
download | gdb-f5b73fbba3bdceaefcd4ab1cc7c6427cac362835.zip gdb-f5b73fbba3bdceaefcd4ab1cc7c6427cac362835.tar.gz gdb-f5b73fbba3bdceaefcd4ab1cc7c6427cac362835.tar.bz2 |
2007-08-13 Michael Snyder <msnyder@access-company.com>
* event-top.c (command_line_handler): Memory leak.
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/event-top.c | 2 |
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 |