commit 1635060ba6d80e43e3b0b72e9e1207e263f0c1bc
parent 7a038adfd47809cdf247aeb09ee4c8308cfb033c
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 8 Feb 2018 17:54:31 +0100
tweaks: plug a memory leak when using Verbatim Input at a prompt
This fixes https://savannah.gnu.org/bugs/?53089.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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. */