summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-03-10 15:15:26 +0800
committerXinchen Hui <laruence@gmail.com>2016-03-10 15:15:26 +0800
commitc3cf6f2a682eb25d0a52bef77386f155115efc13 (patch)
tree5256dc313e1a9ae868796c8169f835b802f26716
parent675c295722192cf394987cca2e36caddd4d0d038 (diff)
downloadphp-git-c3cf6f2a682eb25d0a52bef77386f155115efc13.tar.gz
emalloc never returns NULL (partially fix for #71753)
-rw-r--r--ext/standard/http_fopen_wrapper.c5
1 files changed, 1 insertions, 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);
}
}