cvs: php4 /ext/standard filters.c

From: Date: Wed, 16 Apr 2003 15:10:01 +0000
Subject: cvs: php4 /ext/standard filters.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20324@lists.php.net to get a copy of this message
moriyoshi Wed Apr 16 11:10:01 2003 EDT Modified files: /php4/ext/standard filters.c Log: Fixed memleak Index: php4/ext/standard/filters.c diff -u php4/ext/standard/filters.c:1.32 php4/ext/standard/filters.c:1.33 --- php4/ext/standard/filters.c:1.32 Wed Apr 16 10:55:25 2003 +++ php4/ext/standard/filters.c Wed Apr 16 11:10:01 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: filters.c,v 1.32 2003/04/16 14:55:25 moriyoshi Exp $ */ +/* $Id: filters.c,v 1.33 2003/04/16 15:10:01 moriyoshi Exp $ */ #include "php.h" #include "php_globals.h" @@ -1617,6 +1617,8 @@ 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);

« previous php.cvs (#20324) next »