[PATCH 0/1] MR3054: msi: Fix memory leaks in HANDLE_CustomType23 (scan-build).
From: Alex Henrie <alexhenrie24(a)gmail.com> --- dlls/msi/custom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c index 8b020db260d..d1e064f5b65 100644 --- a/dlls/msi/custom.c +++ b/dlls/msi/custom.c @@ -1021,6 +1021,7 @@ static UINT HANDLE_CustomType23( MSIPACKAGE *package, const WCHAR *source, const if (!(args = build_msiexec_args( filename, target ))) { free( dir ); + free( filename ); return ERROR_OUTOFMEMORY; } @@ -1028,6 +1029,7 @@ static UINT HANDLE_CustomType23( MSIPACKAGE *package, const WCHAR *source, const handle = execute_command( L"msiexec", args, dir ); free( dir ); + free( filename ); free( args ); if (handle == INVALID_HANDLE_VALUE) return ERROR_SUCCESS; return wait_process_handle( package, type, handle, action ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/3054
This merge request was approved by Hans Leidekker. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3054
participants (3)
-
Alex Henrie -
Alex Henrie (@alexhenrie) -
Hans Leidekker (@hans)