From b7cbaa7f43d8a584e273e214209a4f7406a30029 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 27 Sep 2016 19:47:48 +0200 Subject: Fix bug #73181 --- Zend/zend_hash.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Zend/zend_hash.c') diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c index efbc1e2ae4..aecdac6379 100644 --- a/Zend/zend_hash.c +++ b/Zend/zend_hash.c @@ -1447,13 +1447,17 @@ ZEND_API void ZEND_FASTCALL zend_symtable_clean(HashTable *ht) } else if (ht->nNumUsed == ht->nNumOfElements) { do { i_zval_ptr_dtor(&p->val ZEND_FILE_LINE_CC); - zend_string_release(p->key); + if (EXPECTED(p->key)) { + zend_string_release(p->key); + } } while (++p != end); } else { do { if (EXPECTED(Z_TYPE(p->val) != IS_UNDEF)) { i_zval_ptr_dtor(&p->val ZEND_FILE_LINE_CC); - zend_string_release(p->key); + if (EXPECTED(p->key)) { + zend_string_release(p->key); + } } } while (++p != end); } -- cgit v1.2.1