summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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*/