From 8a75c2447fac0415fc9827f8b9adafd5bde105fa Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 4 Jul 2015 01:06:51 +0200 Subject: degesch: fix memory issue in Readline We didn't zero out the pointer for entries. --- degesch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/degesch.c b/degesch.c index f548f9e..b4893da 100644 --- a/degesch.c +++ b/degesch.c @@ -336,6 +336,7 @@ input_restore_buffer (struct input *self, struct input_buffer *buffer) // cleared them altogether, so there should be nothing to leak. HISTORY_STATE *state = history_get_history_state (); state->offset = state->length = state->size = 0; + state->entries = NULL; history_set_history_state (state); free (state); } -- cgit v1.2.3-70-g09d2