From: Michael Wallner Date: Tue, 13 Jan 2009 09:51:45 +0000 (+0000) Subject: fix Bug #15509 HttpMessage::rewind memory leaks X-Git-Tag: RELEASE_1_7_0b1~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=3790a41ee6c48417d9570ec507e6490bcde0736f;p=m6w6%2Fext-http fix Bug #15509 HttpMessage::rewind memory leaks --- diff --git a/http_message_object.c b/http_message_object.c index 81f31a4..8845681 100644 --- a/http_message_object.c +++ b/http_message_object.c @@ -393,6 +393,10 @@ void _http_message_object_free(zend_object *object TSRMLS_DC) { http_message_object *o = (http_message_object *) object; + if (o->iterator) { + zval_ptr_dtor(&o->iterator); + o->iterator = NULL; + } if (o->message) { http_message_dtor(o->message); efree(o->message);