degesch: be a bit less leaky with readline
It spams valgrind.
This commit is contained in:
parent
7c9a1f50da
commit
1bbfcbe993
|
@ -119,7 +119,8 @@ static void
|
||||||
input_buffer_destroy (struct input_buffer *self)
|
input_buffer_destroy (struct input_buffer *self)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_READLINE
|
#ifdef HAVE_READLINE
|
||||||
// Can't really free "history" from here
|
// Can't really free "history" contents from here
|
||||||
|
free (self->history);
|
||||||
#elif defined HAVE_EDITLINE
|
#elif defined HAVE_EDITLINE
|
||||||
history_wend (self->history);
|
history_wend (self->history);
|
||||||
#endif // HAVE_EDITLINE
|
#endif // HAVE_EDITLINE
|
||||||
|
|
Loading…
Reference in New Issue