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

index 298c36eaba9b2295b4ae27f487a443f98d6a470e..34563662c4b42ca31c0a29f724f5cabb07622fe3 100755 (executable)
@@ -319,7 +319,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) {