]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/pxa2xx_pcmcia.c
Use glib memory allocation and free functions
[mirror_qemu.git] / hw / pxa2xx_pcmcia.c
index 50d4649f60db66baa817c288bd6ce8da85e7cea0..74c6817baffea1d8ce5510cc80dbc675314fb71b 100644 (file)
@@ -136,7 +136,7 @@ PXA2xxPCMCIAState *pxa2xx_pcmcia_init(target_phys_addr_t base)
     PXA2xxPCMCIAState *s;
 
     s = (PXA2xxPCMCIAState *)
-            qemu_mallocz(sizeof(PXA2xxPCMCIAState));
+            g_malloc0(sizeof(PXA2xxPCMCIAState));
 
     /* Socket I/O Memory Space */
     iomemtype = cpu_register_io_memory(pxa2xx_pcmcia_io_readfn,