summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2021-03-05 10:53:37 +0100
committerWerner Koch <wk@gnupg.org>2021-03-05 10:53:55 +0100
commit31b708e268ebb725307856865f34a61670a35586 (patch)
tree0c5f2ac7d42c455de10c09922c08335d52d9a0a2
parentcommon,w32: Allow Unicode input and output with the console. (diff)
downloadgnupg2-31b708e268ebb725307856865f34a61670a35586.tar.xz
gnupg2-31b708e268ebb725307856865f34a61670a35586.zip
w32: Free memory allocated by new function w32_write_console.
* common/ttyio.c (w32_write_console): Free buffer. --
-rw-r--r--common/ttyio.c1
1 files changed, 1 insertions, 0 deletions
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*/