summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-11-23 19:13:32 -0500
committerChet Ramey <chet.ramey@case.edu>2011-11-23 19:13:32 -0500
commitfc06b0af27b485addc67a148e5e5ca061c2efdb6 (patch)
tree4a4a7901cb25c21c3d73423584b6fbc90f3fe9fa /misc.c
parentbcd7f75a2bc2f7c67c9cd6899ff546afa45cbba4 (diff)
downloadreadline-fc06b0af27b485addc67a148e5e5ca061c2efdb6.tar.gz
Readline-5.0.005 import
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/misc.c b/misc.c
index ab1e133..403313a 100644
--- a/misc.c
+++ b/misc.c
@@ -276,12 +276,6 @@ rl_maybe_save_line ()
_rl_saved_line_for_history->line = savestring (rl_line_buffer);
_rl_saved_line_for_history->data = (char *)rl_undo_list;
}
- else if (STREQ (rl_line_buffer, _rl_saved_line_for_history->line) == 0)
- {
- free (_rl_saved_line_for_history->line);
- _rl_saved_line_for_history->line = savestring (rl_line_buffer);
- _rl_saved_line_for_history->data = (char *)rl_undo_list; /* XXX possible memleak */
- }
return 0;
}