]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/prep_pci.c
Use glib memory allocation and free functions
[mirror_qemu.git] / hw / prep_pci.c
index 58619ddf746204e22a739df2398c6dc7849dbc0c..c36232a808d1cfb4b7fcf3fc58e0729ed56a871a 100644 (file)
@@ -118,7 +118,7 @@ PCIBus *pci_prep_init(qemu_irq *pic,
     PCIDevice *d;
     int PPC_io_memory;
 
-    s = qemu_mallocz(sizeof(PREPPCIState));
+    s = g_malloc0(sizeof(PREPPCIState));
     s->bus = pci_register_bus(NULL, "pci",
                               prep_set_irq, prep_map_irq, pic,
                               address_space_mem,