[PATCH 0/1] MR9995: wineconsole: Fix resource leak (coverity)
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
that's pretty useless programs terminates the line after -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9995#note_128347
This merge request was closed by Alexandre Julliard. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9995
participants (4)
-
Alexandre Julliard (@julliard) -
eric pouech (@epo) -
Thomas Csovcsity -
Thomas Csovcsity (@thc13)