]> granicus.if.org Git - php/commitdiff
fix reallocation bug
authorStanislav Malyshev <stas@php.net>
Mon, 5 Dec 2005 19:54:47 +0000 (19:54 +0000)
committerStanislav Malyshev <stas@php.net>
Mon, 5 Dec 2005 19:54:47 +0000 (19:54 +0000)
ext/spl/spl_iterators.c

index f13ad493ab1d1232b116623cf606ed4e6256690e..6f1ae05bd259f5c8d0d427aa6ffdc95fdfd3139b 100755 (executable)
@@ -317,7 +317,7 @@ static void spl_recursive_it_rewind_ex(spl_recursive_it_object *object, zval *zt
                        zend_call_method_with_0_params(&zthis, object->ce, &object->endChildren, "endchildren", NULL);
                }
        }
-       erealloc(object->iterators, sizeof(spl_sub_iterator));
+       object->iterators = erealloc(object->iterators, sizeof(spl_sub_iterator));
        object->iterators[0].state = RS_START;
        sub_iter = object->iterators[0].iterator;
        if (sub_iter->funcs->rewind) {