summaryrefslogtreecommitdiff
path: root/Zend/zend_string.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-10-06 13:38:13 +0200
committerAnatol Belski <ab@php.net>2014-10-06 13:38:13 +0200
commit72b34e1372ff7a0bbca6bdca681b8aaa37b4a586 (patch)
tree95c3e353f58206f27eadfab816f97762eaf8d482 /Zend/zend_string.c
parent8d4ee9fbaabd00878190b8ae227dbbefc62b08fc (diff)
downloadphp-git-72b34e1372ff7a0bbca6bdca681b8aaa37b4a586.tar.gz
fix leaking the empty_string in TS builds
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
}