tony2001 Tue Jun 6 14:08:47 2006 UTC
Modified files:
/php-src/main/streams memory.c
Log:
don't leak when decoding failed
http://cvs.php.net/viewcvs.cgi/php-src/main/streams/memory.c?r1=1.22&r2=1.23&diff_format=u
Index: php-src/main/streams/memory.c
diff -u php-src/main/streams/memory.c:1.22 php-src/main/streams/memory.c:1.23
--- php-src/main/streams/memory.c:1.22 Tue May 23 22:26:23 2006
+++ php-src/main/streams/memory.c Tue Jun 6 14:08:47 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: memory.c,v 1.22 2006/05/23 22:26:23 helly Exp $ */
+/* $Id: memory.c,v 1.23 2006/06/06 14:08:47 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