diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-04-16 15:10:01 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-04-16 15:10:01 +0000 |
commit | 2a31fa0569b138fefb0c3b70cd669618bff87ba7 (patch) | |
tree | e56601ad30a6ec33e343dc79099226533bfb1975 | |
parent | 6dd17c380dc93d5f7efb3b39cef8e61fc77b82e3 (diff) | |
download | php-git-2a31fa0569b138fefb0c3b70cd669618bff87ba7.tar.gz |
Fixed memleak
-rw-r--r-- | ext/standard/filters.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/filters.c b/ext/standard/filters.c index 24aee7cfc3..4f03514e82 100644 --- a/ext/standard/filters.c +++ b/ext/standard/filters.c @@ -1617,6 +1617,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); } php_stream_bucket_delref(bucket TSRMLS_CC); |