diff options
-rw-r--r-- | osdep.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |