API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IREALLOC_FREE()

Brew Release
Brew MP 1.0.2
See Also
IRealloc_ErrRealloc()
Description
Helper function for freeing allocated blocks.
Params
piRealloc
[]:
pointer to the IRealloc interface
pBlock
[]:
pointer to a block previously allocated from this interface
Prototype
  •    int IRealloc_Free(IRealloc *piRealloc, void *pBlock);
    
Return
  • AEE_SUCCESS - Allocation (or free) was successful AEE_EHEAP - An internal heap error was detected AEE_EMEMPTR - An invalid pointer was detected Another error from AEEStdErr.h, if appropriate
Side Effect
  • None
Comments
This helper function uses the IRealloc_ErrRealloc() method with a size value of zero (0) to free the provided block. Freeing a NULL pointer is explicitly allowed and does nothing.