]> granicus.if.org Git - php/commitdiff
emalloc never returns NULL (partially fix for #71753)
authorXinchen Hui <laruence@gmail.com>
Thu, 10 Mar 2016 07:15:26 +0000 (15:15 +0800)
committerXinchen Hui <laruence@gmail.com>
Thu, 10 Mar 2016 07:15:26 +0000 (15:15 +0800)
ext/standard/http_fopen_wrapper.c

index 141ba0fc9c5e69d11ccc4fe03df6816960c9a1b9..02b580fa2897f59f0d49107c344414d4070385c6 100644 (file)
@@ -614,10 +614,7 @@ finish:
                        } else {
                                php_error_docref(NULL, E_WARNING, "Cannot construct User-agent header");
                        }
-
-                       if (ua) {
-                               efree(ua);
-                       }
+                       efree(ua);
                }
        }