From 761e347b7526b18b9901ebf3d906b52a21fc9c4b Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 18 Sep 2014 17:11:48 +0200 Subject: [PATCH] that's not char * but zend_string * --- Zend/zend.c | 2 +- Zend/zend_string.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.50.1