fix a crash in the rb_bh_gc code
from libratbox svn r25871 (androsyn)
This commit is contained in:
parent
2bad578999
commit
25bf728581
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ rb_bh_gc(rb_bh * bh)
|
||||||
offset = (uintptr_t)b->elems;
|
offset = (uintptr_t)b->elems;
|
||||||
for (i = 0; i < bh->elemsPerBlock; i++, offset += (uintptr_t)bh->elemSize)
|
for (i = 0; i < bh->elemsPerBlock; i++, offset += (uintptr_t)bh->elemSize)
|
||||||
{
|
{
|
||||||
rb_dlinkDelete(((rb_dlink_node *)(offset + offset_pad)), &bh->free_list);
|
rb_dlinkDelete(((rb_dlink_node *)offset), &bh->free_list);
|
||||||
}
|
}
|
||||||
rb_dlinkDelete(&b->node, &bh->block_list);
|
rb_dlinkDelete(&b->node, &bh->block_list);
|
||||||
free_block(b->elems, b->alloc_size);
|
free_block(b->elems, b->alloc_size);
|
||||||
|
|
Loading…
Reference in a new issue