From a4d3023874779fe1e8aff5d32a729831eba3a294 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Fri, 24 Apr 2015 22:50:53 +0200 Subject: degesch: fix a double-free --- degesch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/degesch.c b/degesch.c index 1808de2..f2d5b4e 100644 --- a/degesch.c +++ b/degesch.c @@ -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 (); -- cgit v1.2.3-70-g09d2