Skip to content

API: MmFreePersistentMemory

Archie_UwU edited this page Jan 19, 2024 · 1 revision

Frees persistent heap memory allocated by the MmAllocatePersistentMemory function.

Syntax

AurieStatus MmFreePersistentMemory(
    [in] PVOID AllocationBase
);

Parameters

AllocationBase

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.

Return Value

If the memory was not allocated by the MmAllocatePersistentMemory function, the function returns AURIE_INVALID_PARAMETER. Otherwise, the function returns AURIE_SUCCESS and frees the memory.