]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/pcie_port.c
Use glib memory allocation and free functions
[mirror_qemu.git] / hw / pcie_port.c
index 340dcdb3c4b72c4b7176ce0cb12029f3073ff0f0..8a36f5cfc7a6d9f2480eb66c4c189f32cd0ac014 100644 (file)
@@ -76,7 +76,7 @@ void pcie_chassis_create(uint8_t chassis_number)
     if (c) {
         return;
     }
-    c = qemu_mallocz(sizeof(*c));
+    c = g_malloc0(sizeof(*c));
     c->number = chassis_number;
     QLIST_INIT(&c->slots);
     QLIST_INSERT_HEAD(&chassis, c, next);