Skip to content

Commit 4526f72

Browse files
committed
Fix extra leak
1 parent df4e0f3 commit 4526f72

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎ext/standard/user_filters.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ static php_stream_filter_status_t userfilter_filter(
166166
if (EG(exception)) {
167167
EG(fake_scope) = old_scope;
168168
if (buckets_in->head) {
169+
php_stream_bucket *bucket;
170+
do {
171+
bucket = buckets_in->head;
172+
php_stream_bucket_unlink(bucket);
173+
php_stream_bucket_delref(bucket);
174+
} while (buckets_in->head);
169175
php_error_docref(NULL, E_WARNING, "Unprocessed filter buckets remaining on input brigade");
170176
}
171177
zend_string_release(stream_name);

0 commit comments

Comments
 (0)