Index: Zend/zend_execute_API.c =================================================================== RCS file: /repository/ZendEngine2/zend_execute_API.c,v retrieving revision 1.331.2.8 diff -u -p -d -r1.331.2.8 zend_execute_API.c --- Zend/zend_execute_API.c 16 Dec 2005 22:15:41 -0000 1.331.2.8 +++ Zend/zend_execute_API.c 20 Dec 2005 11:21:58 -0000 @@ -947,7 +947,7 @@ ZEND_API int zend_lookup_class_ex(char * 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 @@ ZEND_API int zend_lookup_class_ex(char * } if (!EG(exception)) { EG(exception) = exception; + } + if (retval_ptr) { zval_ptr_dtor(&retval_ptr); }