tony2001                Tue Jun  6 14:09:12 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/main/streams       memory.c 
  Log:
  MFH: don't leak when decoding failed
  
  
http://cvs.php.net/viewcvs.cgi/php-src/main/streams/memory.c?r1=1.8.2.6.2.6&r2=1.8.2.6.2.7&diff_format=u
Index: php-src/main/streams/memory.c
diff -u php-src/main/streams/memory.c:1.8.2.6.2.6 
php-src/main/streams/memory.c:1.8.2.6.2.7
--- php-src/main/streams/memory.c:1.8.2.6.2.6   Tue May 23 22:31:25 2006
+++ php-src/main/streams/memory.c       Tue Jun  6 14:09:12 2006
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: memory.c,v 1.8.2.6.2.6 2006/05/23 22:31:25 helly Exp $ */
+/* $Id: memory.c,v 1.8.2.6.2.7 2006/06/06 14:09:12 tony2001 Exp $ */
 
 #define _GNU_SOURCE
 #include "php.h"
@@ -661,6 +661,7 @@
        if (base64) {
                comma = (char*)php_base64_decode((const unsigned char *)comma, 
dlen, &ilen);
                if (!comma) {
+                       zval_ptr_dtor(&meta);
                        php_stream_wrapper_log_error(wrapper, options 
TSRMLS_CC, "rfc2397: unable to decode");
                        return NULL;
                }

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

Reply via email to