From ea1025c793fae12ab3dffe8d0950b3240793294c Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 17 Oct 2009 22:10:24 +0000 Subject: [PATCH] - Fix memory leak --- http_response_object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/http_response_object.c b/http_response_object.c index e638353..33dbee6 100644 --- a/http_response_object.c +++ b/http_response_object.c @@ -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); } } /* }}} */ -- 2.30.2