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

index 7559f2b67af752400eafec8c4cb4399ff55c879f..286f8ff515dcb22849885d2e6593241d6773c700 100644 (file)
@@ -661,6 +661,8 @@ ZEND_API void convert_to_array(zval *op)
                                        convert_object_to_type(op, IS_ARRAY, convert_to_array);
 
                                        if (op->type == IS_ARRAY) {
+                                               zend_hash_destroy(ht);
+                                               FREE_HASHTABLE(ht);
                                                return;
                                        }
                                }