X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=coroutine-win32.c;h=edc1f72c1823416a05e48d5ee1c5361285214bf0;hb=66e61b55f158ef5628e4c056dd2f233c9351a3f5;hp=0e29448473f37010c6ab9ffb910a83ad256513a0;hpb=a67a47d2b559a7733c3f89aeb2d81b19d2c027e4;p=qemu.git diff --git a/coroutine-win32.c b/coroutine-win32.c index 0e2944847..edc1f72c1 100644 --- a/coroutine-win32.c +++ b/coroutine-win32.c @@ -23,7 +23,7 @@ */ #include "qemu-common.h" -#include "qemu-coroutine-int.h" +#include "block/coroutine_int.h" typedef struct { @@ -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)