Patchwork [5/8] Fix qemu_free use in nseries.c

login
register
mail settings
Submitter Jean-Christophe DUBOIS
Date Nov. 15, 2009, 6:18 p.m.
Message ID <1258309100-29591-5-git-send-email-jcd@tribudubois.net>
Download mbox | patch
Permalink /patch/38464/
State New
Headers show

Comments

Jean-Christophe DUBOIS - Nov. 15, 2009, 6:18 p.m.
nseries.c is using free() instead of qemu_free().
Fix it.

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
---
 hw/nseries.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/nseries.c b/hw/nseries.c
index 79f7387..0273eee 100644
--- a/hw/nseries.c
+++ b/hw/nseries.c
@@ -711,7 +711,7 @@  static void n800_dss_init(struct rfbi_chip_s *chip)
     fb_blank = memset(qemu_malloc(800 * 480 * 2), 0xff, 800 * 480 * 2);
     /* Display Memory Data Port */
     chip->block(chip->opaque, 1, fb_blank, 800 * 480 * 2, 800);
-    free(fb_blank);
+    qemu_free(fb_blank);
 }
 
 static void n8x0_dss_setup(struct n800_s *s)