diff options
author | Anatol Belski <ab@php.net> | 2014-10-06 13:38:13 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-10-06 13:38:13 +0200 |
commit | 72b34e1372ff7a0bbca6bdca681b8aaa37b4a586 (patch) | |
tree | 95c3e353f58206f27eadfab816f97762eaf8d482 /Zend/zend.c | |
parent | 8d4ee9fbaabd00878190b8ae227dbbefc62b08fc (diff) | |
download | php-git-72b34e1372ff7a0bbca6bdca681b8aaa37b4a586.tar.gz |
fix leaking the empty_string in TS builds
Diffstat (limited to 'Zend/zend.c')
-rw-r--r-- | Zend/zend.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index 8a6e09ea04..2762b0922e 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -477,7 +477,10 @@ static void compiler_globals_dtor(zend_compiler_globals *compiler_globals TSRMLS compiler_globals->last_static_member = 0; #ifdef ZTS - zend_string_release(compiler_globals->empty_string); + if (NULL != compiler_globals->empty_string) { + free(compiler_globals->empty_string); + compiler_globals->empty_string = NULL; + } #endif } /* }}} */ |