Commit bbcef45a authored by marko's avatar marko

branches/zip: mem_heap_create_block(): Correct an error introduced in r909:

When allocating a block from heap->free_block, set buf_block.
parent 06bb7e6e
......@@ -377,14 +377,13 @@ mem_heap_create_block(
buffer pool, but must get the free block from
the heap header free block field */
block = (mem_block_t*)
((buf_block_t*) heap->free_block)
->frame;
buf_block = heap->free_block;
heap->free_block = NULL;
} else {
buf_block = buf_block_alloc(0);
block = (mem_block_t*) buf_block->frame;
}
block = (mem_block_t*) buf_block->frame;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment