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

View File

@ -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