fix gc_free() to build in mpy-cross

This commit is contained in:
Dan Halbert 2023-10-23 20:44:03 -04:00
parent 3f0b807e74
commit 6cd5150ac1
1 changed files with 1 additions and 1 deletions

View File

@ -963,7 +963,7 @@ void gc_free(void *ptr) {
// assert(area);
#else
// CIRCUITPY-CHANGE: extra checking
if (MP_STATE_MEM(gc_pool_start) == 0) {
if (MP_STATE_MEM(area.gc_pool_start) == 0) {
reset_into_safe_mode(SAFE_MODE_GC_ALLOC_OUTSIDE_VM);
}
assert(VERIFY_PTR(ptr));