1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00

MFB: fix leak appearing when __autoload() throws an exception

This commit is contained in:
Antony Dovgal
2005-12-20 11:25:39 +00:00
parent 8f5f3d8408
commit 3ba24546ed

View File

@@ -970,7 +970,7 @@ ZEND_API int zend_u_lookup_class_ex(zend_uchar type, void *name, int name_length
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 @@ ZEND_API int zend_u_lookup_class_ex(zend_uchar type, void *name, int name_length
}
if (!EG(exception)) {
EG(exception) = exception;
}
if (retval_ptr) {
zval_ptr_dtor(&retval_ptr);
}