From 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Sat, 20 Aug 2011 22:09:37 -0500 Subject: Use glib memory allocation and free functions qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by: Anthony Liguori --- hw/m48t59.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/m48t59.c') diff --git a/hw/m48t59.c b/hw/m48t59.c index 537c0f7b16..401b9693e1 100644 --- a/hw/m48t59.c +++ b/hw/m48t59.c @@ -679,7 +679,7 @@ M48t59State *m48t59_init_isa(uint32_t io_base, uint16_t size, int type) static void m48t59_init_common(M48t59State *s) { - s->buffer = qemu_mallocz(s->size); + s->buffer = g_malloc0(s->size); if (s->type == 59) { s->alrm_timer = qemu_new_timer_ns(vm_clock, &alarm_cb, s); s->wd_timer = qemu_new_timer_ns(vm_clock, &watchdog_cb, s); -- cgit 1.4.1