diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 22:09:37 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 23:01:08 -0500 |
commit | 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c (patch) | |
tree | 9aa05d6e05ed83e67bf014f6745a3081b8407dc5 /hw/m48t59.c | |
parent | 14015304b662e8f8ccce46c5a6927af6a14c510b (diff) |
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/m48t59.c')
-rw-r--r-- | hw/m48t59.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |