From ba1ac82bc95f2ea27c7aa6370e5b8fae530dd599 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 20 Mar 2006 20:09:20 +0000 Subject: [PATCH] don't leak memory even though the code is not stable yet --- ext/standard/filters.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/standard/filters.c b/ext/standard/filters.c index 88e5d09844..7b07514fc8 100644 --- a/ext/standard/filters.c +++ b/ext/standard/filters.c @@ -50,6 +50,7 @@ static php_stream_filter_status_t strfilter_rot13_filter( if (bucket->buf_type == IS_UNICODE) { /* rot13 is silly enough, don't apply it to unicode data */ + php_stream_bucket_delref(bucket TSRMLS_CC); return PSFS_ERR_FATAL; } php_strtr(bucket->buf.s, bucket->buflen, rot13_from, rot13_to, 52); @@ -286,6 +287,7 @@ static php_stream_filter_status_t strfilter_strip_tags_filter( if (bucket->buf_type == IS_UNICODE) { /* Uh oh! */ + php_stream_bucket_delref(bucket TSRMLS_CC); return PSFS_ERR_FATAL; } -- 2.50.1