]> git.proxmox.com Git - qemu.git/blobdiff - qga/guest-agent-command-state.c
smc91c111: Fix receive starvation
[qemu.git] / qga / guest-agent-command-state.c
index bc6e0bd4a892f0cf2fa10abd9b63f7cf8cc24535..969da23282b30cebc00b6a674f7e2cb39e2b5f07 100644 (file)
@@ -27,7 +27,7 @@ void ga_command_state_add(GACommandState *cs,
                           void (*init)(void),
                           void (*cleanup)(void))
 {
-    GACommandGroup *cg = qemu_mallocz(sizeof(GACommandGroup));
+    GACommandGroup *cg = g_malloc0(sizeof(GACommandGroup));
     cg->init = init;
     cg->cleanup = cleanup;
     cs->groups = g_slist_append(cs->groups, cg);
@@ -67,7 +67,7 @@ void ga_command_state_cleanup_all(GACommandState *cs)
 
 GACommandState *ga_command_state_new(void)
 {
-    GACommandState *cs = qemu_mallocz(sizeof(GACommandState));
+    GACommandState *cs = g_malloc0(sizeof(GACommandState));
     cs->groups = NULL;
     return cs;
 }