input: plug a memory leak

This fixes https://savannah.gnu.org/bugs/?48538.
This commit is contained in:
Benno Schulenberg 2016-07-17 12:00:33 +02:00
parent b3fbb7c7ff
commit 1d4c1e0bfc

View File

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