nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 1d4c1e0bfc732acccae42d85f541f0220e152387
parent b3fbb7c7ff2d993123eea3f54d16574f8631f3ed
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sun, 17 Jul 2016 12:00:33 +0200

input: plug a memory leak

This fixes https://savannah.gnu.org/bugs/?48538.

Diffstat:
Msrc/winio.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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);