OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73332e5
)
fixing free
author
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 4 Apr 2004 20:36:29 +0000
(20:36 +0000)
committer
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 4 Apr 2004 20:36:29 +0000
(20:36 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@707
c046a42c
-6fe2-441c-8c8c-
71466251a162
osdep.c
patch
|
blob
|
history
diff --git
a/osdep.c
b/osdep.c
index
aa061a9
..
83f5a77
100644
(file)
--- a/
osdep.c
+++ b/
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;