Browse Source

Fixed a small leak in the convert filter code

migration/unlabaled-1.3.2
Moriyoshi Koizumi 23 years ago
parent
commit
9bdc86973b
  1. 2
      ext/standard/filters.c

2
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) {

Loading…
Cancel
Save