cvs: ZendEngine2 / zend_execute_API.c
| From: | Antony Dovgal | Date: | Tue, 20 Dec 2005 11:25:39 +0000 |
| Subject: | cvs: ZendEngine2 / zend_execute_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4465@lists.php.net to get a copy of this message | ||
tony2001 Tue Dec 20 11:25:39 2005 EDT
Modified files:
/ZendEngine2 zend_execute_API.c
Log:
MFB: fix leak appearing when __autoload() throws an exception
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_execute_API.c?r1=1.346&r2=1.347&diff_format=u
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.346 ZendEngine2/zend_execute_API.c:1.347
--- ZendEngine2/zend_execute_API.c:1.346 Fri Dec 9 18:09:08 2005
+++ ZendEngine2/zend_execute_API.c Tue Dec 20 11:25:39 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_execute_API.c,v 1.346 2005/12/09 18:09:08 dmitry Exp $ */
+/* $Id: zend_execute_API.c,v 1.347 2005/12/20 11:25:39 tony2001 Exp $ */
#include <stdio.h>
#include <signal.h>
@@ -970,7 +970,7 @@
zval **args[1];
zval autoload_function;
zval *class_name_ptr;
- zval *retval_ptr;
+ zval *retval_ptr = NULL;
int retval;
unsigned int lc_name_len;
char *lc_name;
@@ -1057,6 +1057,8 @@
}
if (!EG(exception)) {
EG(exception) = exception;
+ }
+ if (retval_ptr) {
zval_ptr_dtor(&retval_ptr);
}