summaryrefslogtreecommitdiff
path: root/Zend/zend_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_string.c')
-rw-r--r--Zend/zend_string.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zend/zend_string.c b/Zend/zend_string.c
index a4455e8da9..a2fe091695 100644
--- a/Zend/zend_string.c
+++ b/Zend/zend_string.c
@@ -80,7 +80,10 @@ void zend_interned_strings_dtor(TSRMLS_D)
#ifndef ZTS
zend_hash_destroy(&CG(interned_strings));
#else
- zend_string_release(CG(empty_string));
+ if (NULL != CG(empty_string)) {
+ free(CG(empty_string));
+ CG(empty_string) = NULL;
+ }
#endif
}