diff options
author | Xinchen Hui <laruence@gmail.com> | 2016-03-10 15:15:26 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2016-03-10 15:15:26 +0800 |
commit | c3cf6f2a682eb25d0a52bef77386f155115efc13 (patch) | |
tree | 5256dc313e1a9ae868796c8169f835b802f26716 | |
parent | 675c295722192cf394987cca2e36caddd4d0d038 (diff) | |
download | php-git-c3cf6f2a682eb25d0a52bef77386f155115efc13.tar.gz |
emalloc never returns NULL (partially fix for #71753)
-rw-r--r-- | ext/standard/http_fopen_wrapper.c | 5 |
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); } } |