cvs: ZendEngine2(PHP_5_1) / zend_execute_API.c
| From: | Antony Dovgal | Date: | Tue, 20 Dec 2005 11:25:34 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_1) / zend_execute_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4464@lists.php.net to get a copy of this message | ||
tony2001 Tue Dec 20 11:25:34 2005 EDT
Modified files: (Branch: PHP_5_1)
/ZendEngine2 zend_execute_API.c
Log:
fix leak appearing when __autoload() throws an exception
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_execute_API.c?r1=1.331.2.8&r2=1.331.2.9&diff_format=u
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.331.2.8 ZendEngine2/zend_execute_API.c:1.331.2.9
--- ZendEngine2/zend_execute_API.c:1.331.2.8 Fri Dec 16 22:15:41 2005
+++ ZendEngine2/zend_execute_API.c Tue Dec 20 11:25:34 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_execute_API.c,v 1.331.2.8 2005/12/16 22:15:41 helly Exp $ */
+/* $Id: zend_execute_API.c,v 1.331.2.9 2005/12/20 11:25:34 tony2001 Exp $ */
#include <stdio.h>
#include <signal.h>
@@ -947,7 +947,7 @@
zval **args[1];
zval autoload_function;
zval *class_name_ptr;
- zval *retval_ptr;
+ zval *retval_ptr = NULL;
int retval;
char *lc_name;
zval *exception;
@@ -1030,6 +1030,8 @@
}
if (!EG(exception)) {
EG(exception) = exception;
+ }
+ if (retval_ptr) {
zval_ptr_dtor(&retval_ptr);
}