aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-03-05 09:53:37 +0000
committerWerner Koch <[email protected]>2021-06-08 08:29:08 +0000
commitebdb62a98a6e917bafb795b5f50483a95790e739 (patch)
treeaeb47cff1a5995eb6604c79b98d6147c456a6617
parentcommon,w32: Allow Unicode input and output with the console. (diff)
downloadgnupg-ebdb62a98a6e917bafb795b5f50483a95790e739.tar.gz
gnupg-ebdb62a98a6e917bafb795b5f50483a95790e739.zip
w32: Free memory allocated by new function w32_write_console.
* common/ttyio.c (w32_write_console): Free buffer. -- (cherry picked from commit 31b708e268ebb725307856865f34a61670a35586)
-rw-r--r--common/ttyio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/ttyio.c b/common/ttyio.c
index de1731a58..c385700de 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*/