mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
[SETUPAPI]
Fix a memory leak svn path=/trunk/; revision=67804
This commit is contained in:
@@ -586,6 +586,7 @@ SetupDiOpenDeviceInterfaceRegKey(
|
||||
Slash = wcsrchr(Path, '\\');
|
||||
if (!Guid || !Slash)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, Path);
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return INVALID_HANDLE_VALUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user