From 844b3a1b86de56856b42cef5fc63f46b730fe083 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Fri, 22 Dec 2006 00:57:51 +0000 Subject: [PATCH] - Fix memory allocation/deallocation to match --- ext/spl/php_spl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index 5f2cc98830..3ecbf1499f 100755 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -282,7 +282,7 @@ PHP_FUNCTION(spl_autoload) RETURN_FALSE; } - copy = pos1 = zend_zstrndup(ZEND_STR_TYPE, file_exts, file_exts_len); + copy = pos1 = ezstrndup(ZEND_STR_TYPE, file_exts, file_exts_len); lc_name = zend_u_str_tolower_dup(ZEND_STR_TYPE, class_name, class_name_len); while(pos1.v && (unicode ? *pos1.u : *pos1.s) && !EG(exception)) { EG(return_value_ptr_ptr) = original_return_value; @@ -310,12 +310,9 @@ PHP_FUNCTION(spl_autoload) } efree(lc_name.v); -#if MBO_0 - /* UTODO: This is actually correct but sometimesfails in tests, no idea why */ if (copy.v) { efree(copy.v); } -#endif EG(return_value_ptr_ptr) = original_return_value; EG(opline_ptr) = original_opline_ptr; -- 2.50.1