BACnetFreeStackAllocatedMemory (FUN)¶
FUNCTION BACnetFreeStackAllocatedMemory
Application can release BACnet API allocated memory by calling this.
Some BACnet service functions (like ::BACnetReadPropertyMultiple) which retrieve information from BACnet devices, may be allowed to allocate it’s own memory to deliver the values to the user. The user has to initialize the pointer with NULL and size of buffer with 0 in that case. The returned memory should be freed with this function if the user doesn’t need the buffer contents any more.
- InOut:
Scope
Name
Type
Comment
Input
pMemory
POINTER TO IEC_BACNET_BYTE
The pointer to memory which had been allocated by the stack API during an BACnet service request.