diff options
| author | Přemysl Eric Janouch <p@janouch.name> | 2025-11-19 10:57:25 +0100 |
|---|---|---|
| committer | Přemysl Eric Janouch <p@janouch.name> | 2025-11-19 11:03:55 +0100 |
| commit | 77aaf8786089be270964e2f79ca6b1e0cc98ede7 (patch) | |
| tree | d29d519fcc1b8979bd225f7c1a195f9408b27b22 | |
| parent | 57261fb13a672ec7b94441c356dd62863feb033d (diff) | |
| download | xK-77aaf8786089be270964e2f79ca6b1e0cc98ede7.tar.gz xK-77aaf8786089be270964e2f79ca6b1e0cc98ede7.tar.xz xK-77aaf8786089be270964e2f79ca6b1e0cc98ede7.zip | |
xC: hackfix Readline 8.3origin/master
| -rw-r--r-- | xC.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -653,10 +653,15 @@ input_rl_buffer_destroy (void *input, input_buffer_t input_buffer) HISTORY_STATE *state = history_get_history_state (); history_set_history_state (buffer->history); + + // TODO: Actually figure out why these cause crashes later. +#if RL_READLINE_VERSION <= 0x0802 rl_clear_history (); // rl_clear_history just removes history entries, // we have to reclaim memory for their actual container ourselves free (buffer->history->entries); +#endif + free (buffer->history); buffer->history = NULL; |
