From 1bbfcbe993e86ad3fbe9fa099afa2a38cdf270d9 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 10 May 2015 00:27:28 +0200
Subject: degesch: be a bit less leaky with readline
It spams valgrind.
---
degesch.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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
--
cgit v1.2.3-70-g09d2