From 6215a6165367d654d9b095859417cb8454b6fd90 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Sat, 25 Apr 2009 21:54:39 +0000 Subject: [PATCH] Fix memleak --- ext/spl/php_spl.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index 181a6ee466..061e5653b0 100755 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -315,17 +315,10 @@ PHP_FUNCTION(spl_autoload) * The "scope" is determined by an opcode, if it is ZEND_FETCH_CLASS we know function was called indirectly by * the Zend engine. */ - - char *sclass_name; - int sclass_name_len; - - zend_unicode_to_string(ZEND_U_CONVERTER(UG(output_encoding_conv)), &sclass_name, &sclass_name_len, - class_name.u, class_name_len); - if (active_opline->opcode != ZEND_FETCH_CLASS) { - zend_throw_exception_ex(spl_ce_LogicException, 0 TSRMLS_CC, "Class %s could not be loaded", sclass_name); + zend_throw_exception_ex(spl_ce_LogicException, 0 TSRMLS_CC, "Class %v could not be loaded", class_name.u); } else { - php_error_docref(NULL TSRMLS_CC, E_ERROR, "Class %s could not be loaded", sclass_name); + php_error_docref(NULL TSRMLS_CC, E_ERROR, "Class %v could not be loaded", class_name.u); } } } /* }}} */ -- 2.40.0