From 1635060ba6d80e43e3b0b72e9e1207e263f0c1bc Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 8 Feb 2018 17:54:31 +0100 Subject: [PATCH] tweaks: plug a memory leak when using Verbatim Input at a prompt This fixes https://savannah.gnu.org/bugs/?53089. --- src/prompt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/prompt.c b/src/prompt.c index 025fd203..1a89a50a 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -354,6 +354,8 @@ void do_statusbar_verbatim_input(void) kbinput = get_verbatim_kbinput(bottomwin, &kbinput_len); do_statusbar_output(kbinput, kbinput_len, FALSE); + + free(kbinput); } /* Return the zero-based column position of the cursor in the answer. */