Releases a contiguous memory area that was allocated with sys_malloc.
ptr - void* pointer to the allocated memory area.
- It is recommended to set pointers to released memory areas to zero. Accessing a memory area after it's released will result in a crash.
A7.84 If a script function wrote past the end of an allocated memory area, sys_free will issue an E1516 error message.
sys_free can not be used to release memory areas allocated with different methods, such as malloc or sys_nxalloc.
► latest version online