]> git.proxmox.com Git - qemu.git/blobdiff - migration-exec.c
Use glib memory allocation and free functions
[qemu.git] / migration-exec.c
index 4b7aad8b6b599477bf19aa38d06b78d96c2db659..2cfb6f232c092df965b9dc789665c3d1fb6206d6 100644 (file)
@@ -71,7 +71,7 @@ MigrationState *exec_start_outgoing_migration(Monitor *mon,
     FdMigrationState *s;
     FILE *f;
 
-    s = qemu_mallocz(sizeof(*s));
+    s = g_malloc0(sizeof(*s));
 
     f = popen(command, "w");
     if (f == NULL) {
@@ -113,7 +113,7 @@ MigrationState *exec_start_outgoing_migration(Monitor *mon,
 err_after_open:
     pclose(f);
 err_after_alloc:
-    qemu_free(s);
+    g_free(s);
     return NULL;
 }