aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-08-08 18:34:28 +0000
committerMichael Snyder <msnyder@vmware.com>2007-08-08 18:34:28 +0000
commit91d2803c325882e58167accad259c6334b57bdcf (patch)
tree728b7fe991584b21a8ca752c91db0c37e88d8cfc /gdb/top.c
parentea5bf0a1f9f5ebc127b1982c31a7abb27b36c563 (diff)
downloadgdb-91d2803c325882e58167accad259c6334b57bdcf.zip
gdb-91d2803c325882e58167accad259c6334b57bdcf.tar.gz
gdb-91d2803c325882e58167accad259c6334b57bdcf.tar.bz2
2007-08-08 Michael Snyder <msnyder@access-company.com>
* top.c (command_line_input): Memory leak.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 14a7c56..f47c7af 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