]> git.proxmox.com Git - qemu.git/blobdiff - hw/bt-hci-csr.c
Use glib memory allocation and free functions
[qemu.git] / hw / bt-hci-csr.c
index d135ef47907ffe162b401663466b9c97b3d8ab8c..0dcf897421e90eb3938afc7092b5d2162333f84e 100644 (file)
@@ -434,7 +434,7 @@ qemu_irq *csrhci_pins_get(CharDriverState *chr)
 CharDriverState *uart_hci_init(qemu_irq wakeup)
 {
     struct csrhci_s *s = (struct csrhci_s *)
-            qemu_mallocz(sizeof(struct csrhci_s));
+            g_malloc0(sizeof(struct csrhci_s));
 
     s->chr.opaque = s;
     s->chr.chr_write = csrhci_write;