summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index dd2f337..c1c763c 100644
--- a/parse.y
+++ b/parse.y
@@ -2046,6 +2046,8 @@ shell_getc (remove_quoted_newline)
history_buf[history_index] = '\0';
expansions = pre_process_line (history_buf, 1, 1);
flag = expansions != history_buf;
+
+ free(history_buf);
}
else {
expansions = pre_process_line (shell_input_line, 1, 1);