]> granicus.if.org Git - php/commitdiff
Added missing bit of the previous patch.
authorIlia Alshanetsky <iliaa@php.net>
Fri, 6 May 2005 02:19:36 +0000 (02:19 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 6 May 2005 02:19:36 +0000 (02:19 +0000)
ext/standard/http_fopen_wrapper.c

index ae4c664a3f0e1679079f3fcb361da3193cea9eac..6d2869b61b0e3181c90aa33d80258d6d24fe1e52 100644 (file)
@@ -569,7 +569,9 @@ out:
                efree(http_header_line);
        if (scratch)
                efree(scratch);
-       php_url_free(resource);
+       if (resource) {
+               php_url_free(resource);
+       }
 
        if (stream) {
                if (header_init) {