Remove more unnecessary checks on Zend's allocator functions

This commit is contained in:
Thomas Punt 2017-03-16 08:27:57 +00:00 committed by Nikita Popov
parent 9d9defa29a
commit 932c4b35dc
10 changed files with 13 additions and 106 deletions

View file

@ -88,9 +88,6 @@ zend_mb_regex_globals *php_mb_regex_globals_alloc(void)
{
zend_mb_regex_globals *pglobals = pemalloc(
sizeof(zend_mb_regex_globals), 1);
if (!pglobals) {
return NULL;
}
if (SUCCESS != _php_mb_regex_globals_ctor(pglobals)) {
pefree(pglobals, 1);
return NULL;