Skip to content

Commit decbfcc

Browse files
committed
Test
1 parent 98e3a70 commit decbfcc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Zend/zend_objects_API.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ ZEND_API void ZEND_FASTCALL zend_objects_store_del(zend_object *object) /* {{{ *
215215
object->handlers->free_obj(object);
216216
printf("Freeing %p and invoking free\n", object);
217217
} else {
218+
GC_ADD_FLAGS(object, IS_OBJ_FREE_CALLED);
219+
GC_SET_REFCOUNT(object, 1);
220+
object->handlers->free_obj(object);
221+
218222
printf("Freeing %p without invoking free\n", object);
219223
}
220224
ptr = ((char*)object) - object->handlers->offset;

0 commit comments

Comments
 (0)