We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed9c283 commit 05a1557Copy full SHA for 05a1557
ext/gmp/gmp.c
@@ -208,7 +208,7 @@ static void gmp_free_object_storage(zend_object *obj) /* {{{ */
208
209
static inline zend_object *gmp_create_object_ex(zend_class_entry *ce, mpz_ptr *gmpnum_target) /* {{{ */
210
{
211
- gmp_object *intern = emalloc(sizeof(gmp_object) + zend_object_properties_size(ce));
+ gmp_object *intern = zend_object_alloc(sizeof(gmp_object), ce);
212
213
zend_object_std_init(&intern->std, ce);
214
object_properties_init(&intern->std, ce);
0 commit comments