]> granicus.if.org Git - php/commitdiff
nuke redundant zval_ptr_dtor() call and fix memory corruption/segfault
authorAntony Dovgal <tony2001@php.net>
Tue, 5 Dec 2006 18:42:22 +0000 (18:42 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 5 Dec 2006 18:42:22 +0000 (18:42 +0000)
ext/standard/http_fopen_wrapper.c

index 0d9b7057fd2e79782da152703c73597ce1956230..2a510228f40ed1ad06529a222789752b3ed8edd5 100644 (file)
@@ -289,7 +289,6 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path,
                SEPARATE_ZVAL(tmpzval);
                convert_to_double_ex(tmpzval);
                protocol_version_len = spprintf(&protocol_version, 0, "%.1f", Z_DVAL_PP(tmpzval));
-               zval_ptr_dtor(tmpzval);
        }
 
        if (!scratch) {