cvs: php-src /ext/standard datetime.c

From: Date: Thu, 21 Dec 2006 21:40:53 +0000
Subject: cvs: php-src /ext/standard datetime.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-42284@lists.php.net to get a copy of this message
tony2001 Thu Dec 21 21:40:53 2006 UTC Modified files: /php-src/ext/standard datetime.c Log: temp is freed in zend_unicode_to_string() on failure http://cvs.php.net/viewvc.cgi/php-src/ext/standard/datetime.c?r1=1.142&r2=1.143&diff_format=u Index: php-src/ext/standard/datetime.c diff -u php-src/ext/standard/datetime.c:1.142 php-src/ext/standard/datetime.c:1.143 --- php-src/ext/standard/datetime.c:1.142 Thu Dec 21 00:25:58 2006 +++ php-src/ext/standard/datetime.c Thu Dec 21 21:40:53 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: datetime.c,v 1.142 2006/12/21 00:25:58 tony2001 Exp $ */ +/* $Id: datetime.c,v 1.143 2006/12/21 21:40:53 tony2001 Exp $ */ #include "php.h" #include "zend_operators.h" @@ -113,7 +113,6 @@ ts_length = temp_len; if (zend_unicode_to_string(ZEND_U_CONVERTER(UG(runtime_encoding_conv)), &temp, &temp_len, format.u, format_length TSRMLS_CC) == FAILURE) { - efree(ts.s); RETURN_FALSE; } format.s = temp;

« previous php.cvs (#42284) next »