degesch: be a bit less leaky with readline

It spams valgrind.
This commit is contained in:
Přemysl Eric Janouch 2015-05-10 00:27:28 +02:00
parent 7c9a1f50da
commit 1bbfcbe993
1 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,8 @@ static void
input_buffer_destroy (struct input_buffer *self)
{
#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
history_wend (self->history);
#endif // HAVE_EDITLINE