From: Anatol Belski Date: Thu, 18 Sep 2014 15:11:48 +0000 (+0200) Subject: that's not char * but zend_string * X-Git-Tag: POST_NATIVE_TLS_MERGE^2~226 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=761e347b7526b18b9901ebf3d906b52a21fc9c4b;p=php that's not char * but zend_string * --- diff --git a/Zend/zend.c b/Zend/zend.c index b646ec2554..07171bd4cc 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -549,7 +549,7 @@ static void compiler_globals_dtor(zend_compiler_globals *compiler_globals TSRMLS compiler_globals->last_static_member = 0; #ifdef ZTS - free(compiler_globals->empty_string); + zend_string_release(compiler_globals->empty_string); #endif } /* }}} */ diff --git a/Zend/zend_string.c b/Zend/zend_string.c index a9148f2c4a..a4455e8da9 100644 --- a/Zend/zend_string.c +++ b/Zend/zend_string.c @@ -80,7 +80,7 @@ void zend_interned_strings_dtor(TSRMLS_D) #ifndef ZTS zend_hash_destroy(&CG(interned_strings)); #else - free(CG(empty_string)); + zend_string_release(CG(empty_string)); #endif }