- Fix memory leak
authorFelipe Pena <felipe@php.net>
Sat, 17 Oct 2009 22:10:24 +0000 (22:10 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 17 Oct 2009 22:10:24 +0000 (22:10 +0000)
http_response_object.c

index e638353..33dbee6 100644 (file)
@@ -670,6 +670,7 @@ PHP_METHOD(HttpResponse, getStream)
        if (return_value_used) {
                zval *stream = http_zsep(IS_LONG, *(zend_std_get_static_property(THIS_CE, ZEND_STRS("stream")-1, 0 TSRMLS_CC)));
                RETVAL_RESOURCE(Z_LVAL_P(stream));
+               zval_ptr_dtor(&stream);
        }
 }
 /* }}} */