From: Benjamin Eberlei Date: Sun, 18 Aug 2019 09:01:31 +0000 (+0200) Subject: Cleanup unnecessary if guard clause to free buffer. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58d661cd7d0c60aba2708993e584ef47b6cd3cd8;p=php Cleanup unnecessary if guard clause to free buffer. --- diff --git a/main/main.c b/main/main.c index df73f00beb..37894b4764 100644 --- a/main/main.c +++ b/main/main.c @@ -1417,12 +1417,6 @@ static ZEND_COLD void php_error_cb(int type, const char *error_filename, const u break; } - /* Log if necessary */ - if (!display) { - efree(buffer); - return; - } - efree(buffer); } /* }}} */