aboutsummaryrefslogtreecommitdiff
path: root/hw/nand.c
diff options
context:
space:
mode:
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