From: Xinchen Hui Date: Thu, 10 Mar 2016 07:15:26 +0000 (+0800) Subject: emalloc never returns NULL (partially fix for #71753) X-Git-Tag: php-7.0.5RC1~10^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3cf6f2a682eb25d0a52bef77386f155115efc13;p=php emalloc never returns NULL (partially fix for #71753) --- diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 141ba0fc9c..02b580fa28 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -614,10 +614,7 @@ finish: } else { php_error_docref(NULL, E_WARNING, "Cannot construct User-agent header"); } - - if (ua) { - efree(ua); - } + efree(ua); } }