]> git.proxmox.com Git - mirror_qemu.git/blobdiff - bt-host.c
Use glib memory allocation and free functions
[mirror_qemu.git] / bt-host.c
index 095254ddc6ef350e5f5e7f1f8b41ce0faa48b24f..df5b7cdace86e43f66e534f6cfd60c2234428cbd 100644 (file)
--- a/bt-host.c
+++ b/bt-host.c
@@ -177,7 +177,7 @@ struct HCIInfo *bt_host_hci(const char *id)
     }
 # endif
 
-    s = qemu_mallocz(sizeof(struct bt_host_hci_s));
+    s = g_malloc0(sizeof(struct bt_host_hci_s));
     s->fd = fd;
     s->hci.cmd_send = bt_host_cmd;
     s->hci.sco_send = bt_host_sco;