From: Thomas Csovcsity <thc.fr13nd@gmail.com> --- programs/wineconsole/wineconsole.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c index 372f8820812..b64428e64dd 100644 --- a/programs/wineconsole/wineconsole.c +++ b/programs/wineconsole/wineconsole.c @@ -106,6 +106,7 @@ int WINAPI wWinMain( HINSTANCE inst, HINSTANCE prev, WCHAR *cmdline, INT show ) swprintf( buf, len, format, cmd ); WriteConsoleW( startup.hStdOutput, buf, wcslen(buf), &len, NULL); while (ReadConsoleInputW( startup.hStdInput, &ir, 1, &len ) && ir.EventType == MOUSE_EVENT); + free( buf ); } return exit_code; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9995