mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
fixing free
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@707 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
73332e5ccd
commit
57c3072482
1 changed files with 2 additions and 0 deletions
2
osdep.c
2
osdep.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue