degesch: fix a double-free

This commit is contained in:
Přemysl Eric Janouch 2015-04-24 22:50:53 +02:00
parent d4413627e6
commit a4d3023874

View File

@ -1151,6 +1151,7 @@ buffer_activate (struct app_context *ctx, struct buffer *buffer)
rl_point = buffer->saved_point;
rl_mark = buffer->saved_mark;
free (buffer->saved_line);
buffer->saved_line = 0;
if (ctx->readline_prompt_shown)
rl_redisplay ();