mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-23 05:11:35 +03:00
input: plug a memory leak
This fixes https://savannah.gnu.org/bugs/?48538.
This commit is contained in:
parent
b3fbb7c7ff
commit
1d4c1e0bfc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user