# Function Reference

# _WinAPI_FreeMemory

Frees a memory block in the internal library heap

#include <WinAPIMem.au3>
_WinAPI_FreeMemory ( $pMemory )

## Parameters

$pMemory | A pointer to the valid memory block to be freed.

## Return Value

Success: | 1.
Failure: | 0 and sets the @error flag to non-zero.

## Remarks

The _WinAPI_FreeMemory() function accepts only the pointers returned by some _WinAPI_* functions (see description).