From 1d4c1e0bfc732acccae42d85f541f0220e152387 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Sun, 17 Jul 2016 12:00:33 +0200
Subject: [PATCH] input: plug a memory leak

This fixes https://savannah.gnu.org/bugs/?48538.
---
 src/winio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/winio.c b/src/winio.c
index e96f6e9e..5df57ae7 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -1417,6 +1417,7 @@ int *parse_verbatim_kbinput(WINDOW *win, size_t *kbinput_len)
 		statusbar(_("Unicode Input"));
 
 	    while (uni == ERR) {
+		free(kbinput);
 		while ((kbinput = get_input(win, 1)) == NULL)
 		    ;
 		uni = get_unicode_kbinput(*kbinput);
-- 
GitLab