FIX(zend_mm): heap corrupted
@@ -30,7 +30,7 @@ PHP_MINIT_FUNCTION(excel_writer)
VTIFUL_STARTUP_MODULE(excel);
VTIFUL_STARTUP_MODULE(format);
- excel_res = emalloc(sizeof(excel_resource_t));
+ excel_res = malloc(sizeof(excel_resource_t));
le_excel_writer = zend_register_list_destructors_ex(_php_vtiful_excel_close, NULL, VTIFUL_RESOURCE_NAME, module_number);
@@ -211,7 +211,7 @@ PHP_METHOD(vtiful_excel, output)
workbook_file(excel_res, handle);
- efree(excel_res);
+ free(excel_res);
ZVAL_NULL(&null_handle);
zend_update_property(vtiful_excel_ce, getThis(), ZEND_STRL(V_EXCEL_HANDLE), &null_handle);