degesch: fix a double-free
This commit is contained in:
parent
d4413627e6
commit
a4d3023874
|
@ -1151,6 +1151,7 @@ buffer_activate (struct app_context *ctx, struct buffer *buffer)
|
||||||
rl_point = buffer->saved_point;
|
rl_point = buffer->saved_point;
|
||||||
rl_mark = buffer->saved_mark;
|
rl_mark = buffer->saved_mark;
|
||||||
free (buffer->saved_line);
|
free (buffer->saved_line);
|
||||||
|
buffer->saved_line = 0;
|
||||||
|
|
||||||
if (ctx->readline_prompt_shown)
|
if (ctx->readline_prompt_shown)
|
||||||
rl_redisplay ();
|
rl_redisplay ();
|
||||||
|
|
Loading…
Reference in New Issue