mirror of
https://github.com/donnaskiez/ac.git
synced 2024-11-21 22:24:08 +01:00
fix leak
This commit is contained in:
parent
5805aea784
commit
61e0527f66
1 changed files with 7 additions and 2 deletions
|
@ -1719,8 +1719,6 @@ ValidateSystemModules()
|
|||
goto free_iteration;
|
||||
}
|
||||
|
||||
DEBUG_LOG("Unicode path: %wZ", path);
|
||||
|
||||
status = MapDiskImageIntoVirtualAddressSpace(
|
||||
§ion_handle,
|
||||
§ion,
|
||||
|
@ -1894,6 +1892,9 @@ ValidateSystemModules()
|
|||
disk_hash = NULL;
|
||||
}
|
||||
|
||||
if (modules.address)
|
||||
ExFreePoolWithTag(modules.address, SYSTEM_MODULES_POOL);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
@ -1901,8 +1902,12 @@ NTSTATUS
|
|||
ValidateNtoskrnl()
|
||||
{
|
||||
NTSTATUS status = STATUS_SUCCESS;
|
||||
SYSTEM_MODULES modules = { 0 };
|
||||
|
||||
status = GetSystemModuleInformation(&modules);
|
||||
|
||||
if (modules.address)
|
||||
ExFreePoolWithTag(modules.address, SYSTEM_MODULES_POOL);
|
||||
|
||||
return status;
|
||||
}
|
Loading…
Reference in a new issue