From: Felipe Pena Date: Sat, 17 Oct 2009 22:10:24 +0000 (+0000) Subject: - Fix memory leak X-Git-Tag: RELEASE_1_7_0b2~10 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ea1025c793fae12ab3dffe8d0950b3240793294c;p=m6w6%2Fext-http - Fix memory leak --- 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); } } /* }}} */