-
Notifications
You must be signed in to change notification settings - Fork 3
API: MmFreeMemory
Frees heap memory allocated by the MmAllocateMemory function.
AurieStatus MmFreeMemory(
[in] AurieModule* Owner,
[in] PVOID AllocationBase
);
The plugin that allocated the memory. The lifetime of the allocation is dependant upon the lifetime of the owner module. Allocations are automatically freed after the ModuleUnload
routine, any module operation callbacks, and interface destructors belonging to the module return.
Modules should always supply g_ArSelfModule
or equivalent.
The base of the memory allocation to be freed. Allocations in the global "persistent" pool aren't tied to a module, meaning any module can free any persistent memory allocation.
If the memory was not allocated by the MmAllocateMemory function, the function returns AURIE_INVALID_PARAMETER
. Otherwise, the function returns AURIE_SUCCESS
and frees the memory.