cvs: php4 /ext/standard filters.c
| From: | Moriyoshi Koizumi | Date: | Wed, 05 Mar 2003 17:51:33 +0000 |
| Subject: | cvs: php4 /ext/standard filters.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19407@lists.php.net to get a copy of this message | ||
moriyoshi Wed Mar 5 12:51:33 2003 EDT
Modified files:
/php4/ext/standard filters.c
Log:
Fixed a small leak in the convert filter code
Index: php4/ext/standard/filters.c
diff -u php4/ext/standard/filters.c:1.29 php4/ext/standard/filters.c:1.30
--- php4/ext/standard/filters.c:1.29 Sun Mar 2 03:39:01 2003
+++ php4/ext/standard/filters.c Wed Mar 5 12:51:33 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filters.c,v 1.29 2003/03/02 08:39:01 moriyoshi Exp $ */
+/* $Id: filters.c,v 1.30 2003/03/05 17:51:33 moriyoshi Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -1507,6 +1507,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);
}
} else {
while (buckets_in->head != NULL) {