mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
fix memory leak in case of error
svn path=/trunk/; revision=19266
This commit is contained in:
@@ -66,6 +66,7 @@ UpdateDriverForPlugAndPlayDevicesA(
|
||||
FullInfPathW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
||||
if (!FullInfPathW)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, HardwareIdW);
|
||||
SetLastError(ERROR_GEN_FAILURE);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user