tony2001                Mon Mar 20 20:09:21 2006 UTC

  Modified files:              
    /php-src/ext/standard       filters.c 
  Log:
  don't leak memory even though the code is not stable yet
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/filters.c?r1=1.53&r2=1.54&diff_format=u
Index: php-src/ext/standard/filters.c
diff -u php-src/ext/standard/filters.c:1.53 php-src/ext/standard/filters.c:1.54
--- php-src/ext/standard/filters.c:1.53 Mon Mar 13 04:40:11 2006
+++ php-src/ext/standard/filters.c      Mon Mar 20 20:09:20 2006
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: filters.c,v 1.53 2006/03/13 04:40:11 pollita Exp $ */
+/* $Id: filters.c,v 1.54 2006/03/20 20:09:20 tony2001 Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -50,6 +50,7 @@
 
                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 @@
 
                if (bucket->buf_type == IS_UNICODE) {
                        /* Uh oh! */
+                       php_stream_bucket_delref(bucket TSRMLS_CC);
                        return PSFS_ERR_FATAL;
                }
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to