summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-05-10 00:27:28 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-05-10 00:27:41 +0200
commit1bbfcbe993e86ad3fbe9fa099afa2a38cdf270d9 (patch)
tree3a7d06ebba9185b4815c638b1b96c3d2c3833742 /degesch.c
parent7c9a1f50da19191209b7f908bc553c98dacb1e47 (diff)
downloadxK-1bbfcbe993e86ad3fbe9fa099afa2a38cdf270d9.tar.gz
xK-1bbfcbe993e86ad3fbe9fa099afa2a38cdf270d9.tar.xz
xK-1bbfcbe993e86ad3fbe9fa099afa2a38cdf270d9.zip
degesch: be a bit less leaky with readline
It spams valgrind.
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c3
1 files changed, 2 insertions, 1 deletions
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