Sven Baars : kernel32: Fix a memory leak in MoveFileWithProgressW (Valgrind).
Alexandre Julliard
julliard at winehq.org
Mon Apr 20 15:48:20 CDT 2020
Module: wine
Branch: master
Commit: 1b6b0cda7aee8fc47f61c212bc22d305725b277d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1b6b0cda7aee8fc47f61c212bc22d305725b277d
Author: Sven Baars <sbaars at codeweavers.com>
Date: Sat Apr 18 16:13:21 2020 +0200
kernel32: Fix a memory leak in MoveFileWithProgressW (Valgrind).
Signed-off-by: Sven Baars <sbaars at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/path.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c
index 334fc25e87..93759592c4 100644
--- a/dlls/kernel32/path.c
+++ b/dlls/kernel32/path.c
@@ -502,6 +502,7 @@ BOOL WINAPI MoveFileWithProgressW( LPCWSTR source, LPCWSTR dest,
memcpy( rename_info->FileName, nt_name.Buffer, nt_name.Length );
RtlFreeUnicodeString( &nt_name );
status = NtSetInformationFile( source_handle, &io, rename_info, size, FileRenameInformation );
+ HeapFree( GetProcessHeap(), 0, rename_info );
if (status == STATUS_NOT_SAME_DEVICE && (flag & MOVEFILE_COPY_ALLOWED))
{
NtClose( source_handle );
More information about the wine-cvs
mailing list