sys_free(void* ptr);
Releases a contiguous memory area that was allocated with sys_malloc.
Parameter:
ptr - void* pointer to the allocated memory area.
Speed:
Medium
Remarks:
- 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.
Example:
See sys_malloc
See also:
sys_malloc,
sys_marker,
sizeof, sys_memory
► latest version online