Commit 57c30724 authored by bellard's avatar bellard
Browse files

fixing free

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162
parent 73332e5c
......@@ -235,6 +235,8 @@ void qemu_free(void *ptr)
MemoryBlock *mb;
if (!ptr)
mb = (MemoryBlock *)((uint8_t *)ptr - BLOCK_HEADER_SIZE);
mb->next = first_free_block;
first_free_block = mb;
Supports Markdown
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