]> granicus.if.org Git - php/commitdiff
Missing bit from previous patch.
authorIlia Alshanetsky <iliaa@php.net>
Fri, 6 May 2005 02:20:00 +0000 (02:20 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 6 May 2005 02:20:00 +0000 (02:20 +0000)
ext/standard/http_fopen_wrapper.c

index 066af3cb24145d94b8eee31f28f9eba24068805c..0fd2918583a5448a1676d6cb4cbafd9eaaaba78b 100644 (file)
@@ -611,7 +611,9 @@ out:
                efree(scratch);
        }
 
-       php_url_free(resource);
+       if (resource) {
+               php_url_free(resource);
+       }
 
        if (stream) {
                if (header_init) {