diff options
| author | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-04 01:06:51 +0200 |
|---|---|---|
| committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-04 01:11:27 +0200 |
| commit | 8a75c2447fac0415fc9827f8b9adafd5bde105fa (patch) | |
| tree | 117a73f90b9594f75bab93364a18bff76c5c058d /degesch.c | |
| parent | 2e20ec0ef6a87342a02d90aa73d8daadf478fa0b (diff) | |
| download | xK-8a75c2447fac0415fc9827f8b9adafd5bde105fa.tar.gz xK-8a75c2447fac0415fc9827f8b9adafd5bde105fa.tar.xz xK-8a75c2447fac0415fc9827f8b9adafd5bde105fa.zip | |
degesch: fix memory issue in Readline
We didn't zero out the pointer for entries.
Diffstat (limited to 'degesch.c')
| -rw-r--r-- | degesch.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |
