- 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 e6383538c822e419b318bccd08f8efe95171d0cb..33dbee6671e053378db2be64171cd4f37c74e4ba 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);
        }
 }
 /* }}} */