From 113686caa422c74b714aa07c5ea5832e011541cb Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 21 Dec 2006 01:58:46 +0000 Subject: [PATCH] MFB: Fixed possible memory leak --- Zend/zend_operators.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index d7f2af3061..c085636844 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -1107,6 +1107,8 @@ ZEND_API int convert_to_array(zval *op) convert_object_to_type(op, IS_ARRAY, convert_to_array); if (Z_TYPE_P(op) == IS_ARRAY) { + zend_hash_destroy(ht); + FREE_HASHTABLE(ht); return SUCCESS; } } -- 2.50.1