From 932c4b35dc0fece175ca2764e4c82493a5004273 Mon Sep 17 00:00:00 2001 From: Thomas Punt Date: Thu, 16 Mar 2017 08:27:57 +0000 Subject: Remove more unnecessary checks on Zend's allocator functions --- ext/mbstring/php_mbregex.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'ext/mbstring/php_mbregex.c') diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index 998d9a7072..a2389df880 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -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; -- cgit v1.2.1