Поделиться через


FreeHeap function

The FreeHeap function releases memory previously allocated by the AllocateHeap function.

Syntax

VOID FreeHeap(
  _Inout_ PVOID Base
);

Parameters

  • Base [in, out]
    Pointer to the buffer to be freed.

Return value

This function does not return a value. However, if the function sets Base to NULL, the buffer was freed. If Base is not NULL after the function call ends, the buffer could not be freed.

Remarks

A pointer to the FreeHeap function is available in the SECPKG_DLL_FUNCTIONS structure received from the SpInstanceInit function.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Ntsecpkg.h

See also

AllocateHeap

SECPKG_DLL_FUNCTIONS

SpInstanceInit