diff options
author | Xinchen Hui <laruence@php.net> | 2015-04-28 11:14:21 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2015-04-28 11:14:21 +0800 |
commit | e5633865829a5160077e327445c7ff490f2d05d4 (patch) | |
tree | 23080056406331543113d74de26f0df3e419ea8b /Zend/zend_string.c | |
parent | 422de8a7a7500b26abd7cc0716b7390033626c53 (diff) | |
download | php-git-e5633865829a5160077e327445c7ff490f2d05d4.tar.gz |
Fixed interned string leaks after new STATIC_KEY flag is introduced
Diffstat (limited to 'Zend/zend_string.c')
-rw-r--r-- | Zend/zend_string.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Zend/zend_string.c b/Zend/zend_string.c index e8685a42b2..f395d5c36c 100644 --- a/Zend/zend_string.c +++ b/Zend/zend_string.c @@ -38,8 +38,7 @@ ZEND_API zend_ulong zend_hash_func(const char *str, size_t len) static void _str_dtor(zval *zv) { zend_string *str = Z_STR_P(zv); - GC_FLAGS(str) &= ~IS_STR_INTERNED; - GC_REFCOUNT(str) = 1; + pefree(str, GC_FLAGS(str) & IS_STR_PERSISTENT); } #endif |