com php-src: - Fixed possible memory leak: ext/bz2/bz2_fi lter.c
| From: | Felipe Pena | Date: | Sun, 20 Oct 2013 02:29:34 +0000 |
| Subject: | com php-src: - Fixed possible memory leak: ext/bz2/bz2_fi lter.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73726@lists.php.net to get a copy of this message | ||
Commit: aa4f9b322b18e3dffbe0646c802e6ed3cf71367e
Author: Felipe Pena <felipensp@gmail.com> Sat, 19 Oct 2013 23:29:34 -0300
Parents: 2be67ca457299179d5df05ee569d4efa227e33d9
Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=aa4f9b322b18e3dffbe0646c802e6ed3cf71367e
Log:
- Fixed possible memory leak
Changed paths:
M ext/bz2/bz2_filter.c
Diff:
diff --git a/ext/bz2/bz2_filter.c b/ext/bz2/bz2_filter.c
index 5ed7921..868acec 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;
}