summaryrefslogtreecommitdiff
path: root/Zend/zend_objects_API.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_objects_API.c')
-rw-r--r--Zend/zend_objects_API.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_objects_API.c b/Zend/zend_objects_API.c
index bd6673c0bb..01a403f66c 100644
--- a/Zend/zend_objects_API.c
+++ b/Zend/zend_objects_API.c
@@ -79,7 +79,7 @@ ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects
zend_uint i;
/* Free object properties but don't free object their selves */
- for (i = 1; i < objects->top ; i++) {
+ for (i = objects->top - 1; i > 0 ; i--) {
zend_object *obj = objects->object_buckets[i];
if (IS_OBJ_VALID(obj)) {