[SETUPAPI]

Fix a memory leak

svn path=/trunk/; revision=67804
This commit is contained in:
Pierre Schweitzer
2015-05-17 10:09:50 +00:00
parent 266e481f4c
commit ff88b914aa
+1
View File
@@ -586,6 +586,7 @@ SetupDiOpenDeviceInterfaceRegKey(
Slash = wcsrchr(Path, '\\');
if (!Guid || !Slash)
{
HeapFree(GetProcessHeap(), 0, Path);
SetLastError(ERROR_INVALID_PARAMETER);
return INVALID_HANDLE_VALUE;
}