summaryrefslogtreecommitdiff
path: root/ext/bz2
diff options
context:
space:
mode:
authorFelipe Pena <felipensp@gmail.com>2013-10-19 23:29:34 -0300
committerFelipe Pena <felipensp@gmail.com>2013-10-19 23:29:34 -0300
commitaa4f9b322b18e3dffbe0646c802e6ed3cf71367e (patch)
treeb6c4e8c87a87213cdb785afa93edeae361ef13b6 /ext/bz2
parent2be67ca457299179d5df05ee569d4efa227e33d9 (diff)
downloadphp-git-aa4f9b322b18e3dffbe0646c802e6ed3cf71367e.tar.gz
- Fixed possible memory leak
Diffstat (limited to 'ext/bz2')
-rw-r--r--ext/bz2/bz2_filter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/bz2/bz2_filter.c b/ext/bz2/bz2_filter.c
index 5ed7921c17..868acec870 100644
--- a/ext/bz2/bz2_filter.c
+++ b/ext/bz2/bz2_filter.c
@@ -97,6 +97,7 @@ static php_stream_filter_status_t php_bz2_decompress_filter(
status = BZ2_bzDecompressInit(streamp, 0, data->small_footprint);
if (BZ_OK != status) {
+ php_stream_bucket_delref(bucket TSRMLS_CC);
return PSFS_ERR_FATAL;
}