From eaecdda614bb6b42bf007ba3019257d191bfdd21 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 20 Jun 2015 19:50:45 +0200 Subject: degesch: fix invalid free() --- degesch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/degesch.c b/degesch.c index 2e6e436..079e750 100644 --- a/degesch.c +++ b/degesch.c @@ -396,8 +396,9 @@ input_destroy_buffer (struct input *self, struct input_buffer *buffer) HISTORY_STATE *state = history_get_history_state (); history_set_history_state (buffer->history); - free (buffer->history); rl_clear_history (); + free (buffer->history); + buffer->history = NULL; history_set_history_state (state); free (state); -- cgit v1.2.3-70-g09d2