From c3cf6f2a682eb25d0a52bef77386f155115efc13 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Thu, 10 Mar 2016 15:15:26 +0800 Subject: [PATCH] emalloc never returns NULL (partially fix for #71753) --- ext/standard/http_fopen_wrapper.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); } } -- 2.40.0