summaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2007-08-08 18:34:28 +0000
committerMichael Snyder <msnyder@specifix.com>2007-08-08 18:34:28 +0000
commitd435f8608df98b0e4d0cdb5e1bbcbd792cecfd0d (patch)
treee6ce411b3154bdc09a8ae31efa97e4d18a63f71b /gdb/top.c
parentc11b3753d3c1e460ca6cbc4f3f599562c967cca4 (diff)
downloadgdb-d435f8608df98b0e4d0cdb5e1bbcbd792cecfd0d.tar.gz
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 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