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 e5fe7db commit a0705e5Copy full SHA for a0705e5
src/sass.c
@@ -60,9 +60,10 @@ static void sass_free_storage(zend_object *object)
60
61
zend_object *sass_create_handler(zend_class_entry *type)
62
{
63
- sass_object *obj = ecalloc(1,
64
- sizeof(sass_object) +
65
- zend_object_properties_size(type));
+ size_t size = sizeof(sass_object) + zend_object_properties_size(type);
+
+ sass_object *obj = emalloc(size);
66
+ memset(obj, 0, size - sizeof(zval));
67
68
zend_object_std_init(&obj->zo, type);
69
object_properties_init(&obj->zo, type);
0 commit comments