summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Christophe DUBOIS <jcd@tribudubois.net>2009-11-15 19:18:15 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-02 08:57:42 -0600
commit5f6eab3f10770984cf73cb4326e27bea0b799e71 (patch)
tree9d9e7c6162a7587cf3f696b04795846dcc06ebf9
parent49cd8046dd773c725b2fabe3ebb5ebc85aec0d18 (diff)
Fix qemu_free use in nand.c
nand.c is using free() instead of qemu_free(). Fix it. Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--hw/nand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/nand.c b/hw/nand.c
index 37fd5243f..838f8bc89 100644
--- a/hw/nand.c
+++ b/hw/nand.c
@@ -507,9 +507,9 @@ void nand_done(NANDFlashState *s)
}
if (!s->bdrv || s->mem_oob)
- free(s->storage);
+ qemu_free(s->storage);
- free(s);
+ qemu_free(s);
}
#else