degesch: fix memory issue in Readline
We didn't zero out the pointer for entries.
This commit is contained in:
parent
2e20ec0ef6
commit
8a75c2447f
|
@ -336,6 +336,7 @@ input_restore_buffer (struct input *self, struct input_buffer *buffer)
|
||||||
// cleared them altogether, so there should be nothing to leak.
|
// cleared them altogether, so there should be nothing to leak.
|
||||||
HISTORY_STATE *state = history_get_history_state ();
|
HISTORY_STATE *state = history_get_history_state ();
|
||||||
state->offset = state->length = state->size = 0;
|
state->offset = state->length = state->size = 0;
|
||||||
|
state->entries = NULL;
|
||||||
history_set_history_state (state);
|
history_set_history_state (state);
|
||||||
free (state);
|
free (state);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue