mirror of
https://github.com/mii443/qemu.git
synced 2025-12-09 22:18:23 +00:00
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>
This commit is contained in:
@@ -210,7 +210,7 @@ ptimer_state *ptimer_init(QEMUBH *bh)
|
||||
{
|
||||
ptimer_state *s;
|
||||
|
||||
s = (ptimer_state *)qemu_mallocz(sizeof(ptimer_state));
|
||||
s = (ptimer_state *)g_malloc0(sizeof(ptimer_state));
|
||||
s->bh = bh;
|
||||
s->timer = qemu_new_timer_ns(vm_clock, ptimer_tick, s);
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user