From: Michael Wallner Date: Fri, 10 Dec 2021 22:01:45 +0000 (+0100) Subject: fix decimal context leak X-Git-Tag: v0.1.0~89 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=cefed1ea4947a95a4feebd33fde079f3a8866891;p=awesomized%2Fext-ion fix decimal context leak --- 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);