Skip to content

Commit 41a2658

Browse files
committed
FIX: correctly check for a handle's context flag on free
1 parent 9ad098a commit 41a2658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/m-pools.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,10 @@ const REBPOOLSPEC Mem_Pool_Spec[MAX_POOLS] =
616616
if( !IS_USED_HOB(hob) || hob->data == NULL ) return;
617617

618618
spec = PG_Handles[idx];
619-
//printf("HOB %p free mem: %p\n", hob, hob->data);
619+
//printf("HOB %p free mem: %p %i\n", hob, hob->data, spec.flags);
620620

621621
if (spec.free) {
622-
spec.free(GET_FLAG(spec.flags, HANDLE_REQUIRES_HOB_ON_FREE) ? hob : hob->data);
622+
spec.free(spec.flags & HANDLE_REQUIRES_HOB_ON_FREE ? hob : hob->data);
623623
}
624624

625625
CLEAR(hob->data, spec.size);

0 commit comments

Comments
 (0)