From cefed1ea4947a95a4feebd33fde079f3a8866891 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 10 Dec 2021 23:01:45 +0100 Subject: [PATCH] fix decimal context leak --- ion_private.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ion_private.h b/ion_private.h index 367f6bf..e34a78e 100644 --- a/ion_private.h +++ b/ion_private.h @@ -448,6 +448,7 @@ static inline void php_ion_decimal_ctor(php_ion_decimal *obj) object_init_ex(&zdc, ce_Decimal_Context); obj->ctx = Z_OBJ(zdc); php_ion_decimal_ctx_ctor(php_ion_obj(decimal_ctx, obj->ctx)); + GC_DELREF(obj->ctx); } update_property_obj(&obj->std, ZEND_STRL("context"), obj->ctx); -- 2.30.2