diff --git a/src/prompt.c b/src/prompt.c index 025fd20373ff0f0dcc32907d2d1028903c7b78b0..1a89a50a0d26f3939c1e134ca970a1331b6de07c 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. */