fixing free

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@707 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2004-04-04 20:36:29 +00:00
parent 73332e5ccd
commit 57c3072482
1 changed files with 2 additions and 0 deletions

View File

@ -235,6 +235,8 @@ void qemu_free(void *ptr)
{
MemoryBlock *mb;
if (!ptr)
return;
mb = (MemoryBlock *)((uint8_t *)ptr - BLOCK_HEADER_SIZE);
mb->next = first_free_block;
first_free_block = mb;