ST_USE_SAFE_MEMORY_FREE Definition

When this constant is set to 1, passing an invalid address to the stMemoryFree function is handled safely; the function will simply return FALSE, and the last error code will be set to ERR_INVALID_MEMORY_BLOCK. This constant defaults to 1. However, using the safe memory release method increases the time required for memory allocation and deallocation. To improve performance, ST_USE_SAFE_MEMORY_FREE may be set to 0, which disables address validation. When disabled, passing an invalid address to stMemoryFree will result in unpredictable behavior and may cause the system to hang.

SpaceShadow documentation