From: Moriyoshi Koizumi Date: Wed, 5 Mar 2003 17:51:33 +0000 (+0000) Subject: Fixed a small leak in the convert filter code X-Git-Tag: RELEASE_0_5~598 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bdc86973ba76ee45863ead9298d8915575ac1ed;p=php Fixed a small leak in the convert filter code --- diff --git a/ext/standard/filters.c b/ext/standard/filters.c index 12166a8cc6..1b5a991be2 100644 --- a/ext/standard/filters.c +++ b/ext/standard/filters.c @@ -1507,6 +1507,8 @@ static php_stream_filter_status_t strfilter_convert_filter( if (out_buf_size - ocnt > 0) { new_bucket = php_stream_bucket_new(stream, out_buf, (out_buf_size - ocnt), 1, inst->persistent TSRMLS_CC); php_stream_bucket_append(buckets_out, new_bucket TSRMLS_CC); + } else { + pefree(out_buf, inst->persistent); } } else { while (buckets_in->head != NULL) {