]> granicus.if.org Git - php/commitdiff
MFB: Fixed possible memory leak
authorIlia Alshanetsky <iliaa@php.net>
Thu, 21 Dec 2006 01:58:46 +0000 (01:58 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 21 Dec 2006 01:58:46 +0000 (01:58 +0000)
Zend/zend_operators.c

index d7f2af3061392f7bee7034756d11a56cd6b99896..c08563684442a5d691c835830a2f783d2c29e9dc 100644 (file)
@@ -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;
                                        }
                                }