TAP_MemFree
Topfield Documentation
int TAP_MemFree(const void* addr);
It frees the allocated memory at the HEAP.
- addr : the start address to be freed
Additional Documentation
The firmware is known to keep a list of which memory block is assigned to which TAP, presumably so that it can free all memory allocated to a TAP when that TAP unloads regardless of whether the TAP cleaned up properly. Of course this is no excuse to allow your TAP to leak memory...
Question: Does anyone know the behaviour of TAP_MemFree on being passed a NULL pointer? Most (all?) implementations of free() will just return immediately, and delete in C++ does the same - does TAP_MemFree?