Module: wine Branch: master Commit: 2d4b588afca00b3fafd3fb4509f577a85bd9588b URL: https://gitlab.winehq.org/wine/wine/-/commit/2d4b588afca00b3fafd3fb4509f577a...
Author: Brendan Shanks bshanks@codeweavers.com Date: Mon Nov 28 09:02:26 2022 -0800
mountmgr.sys: Free wine_get_dos_file_name memory with HeapFree.
---
dlls/mountmgr.sys/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c index 328b0b2f344..bc934e2f494 100644 --- a/dlls/mountmgr.sys/device.c +++ b/dlls/mountmgr.sys/device.c @@ -895,7 +895,7 @@ static BOOL get_volume_device_info( struct volume *volume ) } handle = CreateFileW( name, GENERIC_READ | SYNCHRONIZE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, 0 ); - RtlFreeHeap( GetProcessHeap(), 0, name ); + HeapFree( GetProcessHeap(), 0, name ); if (handle == INVALID_HANDLE_VALUE) { WARN("Failed to open %s, err %lu\n", debugstr_a(unix_device), GetLastError());