From 31b708e268ebb725307856865f34a61670a35586 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 5 Mar 2021 10:53:37 +0100 Subject: [PATCH] w32: Free memory allocated by new function w32_write_console. * common/ttyio.c (w32_write_console): Free buffer. -- --- common/ttyio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/ttyio.c b/common/ttyio.c index eb6583436..15f7a0203 100644 --- a/common/ttyio.c +++ b/common/ttyio.c @@ -241,6 +241,7 @@ w32_write_console (const char *string) log_fatal ("WriteConsole failed: %lu != %lu\n", (unsigned long)n, (unsigned long)nwritten); last_prompt_len += n; + xfree (wstring); } #endif /*HAVE_W32_SYSTEM*/