summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-04-24 22:50:53 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-04-24 22:50:53 +0200
commita4d3023874779fe1e8aff5d32a729831eba3a294 (patch)
tree74d5bc383585a63bbcec06fa34cce9dd3b24364e
parentd4413627e68325e954406e35c76b51325bb0e5d1 (diff)
downloadxK-a4d3023874779fe1e8aff5d32a729831eba3a294.tar.gz
xK-a4d3023874779fe1e8aff5d32a729831eba3a294.tar.xz
xK-a4d3023874779fe1e8aff5d32a729831eba3a294.zip
degesch: fix a double-free
-rw-r--r--degesch.c1
1 files changed, 1 insertions, 0 deletions
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 ();