Skip to content

Commit

Permalink
ext/gmp: use zend_object_alloc instead to initialize GMP instances. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored Feb 15, 2025
1 parent ed9c283 commit 05a1557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/gmp/gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ static void gmp_free_object_storage(zend_object *obj) /* {{{ */

static inline zend_object *gmp_create_object_ex(zend_class_entry *ce, mpz_ptr *gmpnum_target) /* {{{ */
{
gmp_object *intern = emalloc(sizeof(gmp_object) + zend_object_properties_size(ce));
gmp_object *intern = zend_object_alloc(sizeof(gmp_object), ce);

zend_object_std_init(&intern->std, ce);
object_properties_init(&intern->std, ce);
Expand Down

0 comments on commit 05a1557

Please sign in to comment.