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 --- coroutine-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coroutine-win32.c') diff --git a/coroutine-win32.c b/coroutine-win32.c index 0e29448473..4179609eec 100644 --- a/coroutine-win32.c +++ b/coroutine-win32.c @@ -64,7 +64,7 @@ Coroutine *qemu_coroutine_new(void) const size_t stack_size = 1 << 20; CoroutineWin32 *co; - co = qemu_mallocz(sizeof(*co)); + co = g_malloc0(sizeof(*co)); co->fiber = CreateFiber(stack_size, coroutine_trampoline, &co->base); return &co->base; } @@ -74,7 +74,7 @@ void qemu_coroutine_delete(Coroutine *co_) CoroutineWin32 *co = DO_UPCAST(CoroutineWin32, base, co_); DeleteFiber(co->fiber); - qemu_free(co); + g_free(co); } Coroutine *qemu_coroutine_self(void) -- cgit v1.2.3