summaryrefslogtreecommitdiff
path: root/hw/nand.c
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 /hw/nand.c
parent49cd8046dd773c725b2fabe3ebb5ebc85aec0d18 (diff)
downloadqemu-5f6eab3f10770984cf73cb4326e27bea0b799e71.tar.gz
qemu-5f6eab3f10770984cf73cb4326e27bea0b799e71.tar.bz2
qemu-5f6eab3f10770984cf73cb4326e27bea0b799e71.zip
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>
Diffstat (limited to 'hw/nand.c')
-rw-r--r--hw/nand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/nand.c b/hw/nand.c
index 37fd5243f3..838f8bc890 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