aboutsummaryrefslogtreecommitdiffstats
path: root/common/ttyio.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-03-05 09:53:37 +0000
committerWerner Koch <[email protected]>2021-03-05 09:53:55 +0000
commit31b708e268ebb725307856865f34a61670a35586 (patch)
tree0c5f2ac7d42c455de10c09922c08335d52d9a0a2 /common/ttyio.c
parentcommon,w32: Allow Unicode input and output with the console. (diff)
downloadgnupg-31b708e268ebb725307856865f34a61670a35586.tar.gz
gnupg-31b708e268ebb725307856865f34a61670a35586.zip
w32: Free memory allocated by new function w32_write_console.
* common/ttyio.c (w32_write_console): Free buffer. --
Diffstat (limited to 'common/ttyio.c')
-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*/