diff --git a/degesch.c b/degesch.c index 7aa9649..fb94009 100644 --- a/degesch.c +++ b/degesch.c @@ -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