1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

w32: Free memory allocated by new function w32_write_console.

* common/ttyio.c (w32_write_console): Free buffer.
--
This commit is contained in:
Werner Koch 2021-03-05 10:53:37 +01:00
parent f165c8a737
commit 31b708e268
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -241,6 +241,7 @@ w32_write_console (const char *string)
log_fatal ("WriteConsole failed: %lu != %lu\n", log_fatal ("WriteConsole failed: %lu != %lu\n",
(unsigned long)n, (unsigned long)nwritten); (unsigned long)n, (unsigned long)nwritten);
last_prompt_len += n; last_prompt_len += n;
xfree (wstring);
} }
#endif /*HAVE_W32_SYSTEM*/ #endif /*HAVE_W32_SYSTEM*/