]> git.proxmox.com Git - qemu.git/blobdiff - hw/eepro100.c
Use glib memory allocation and free functions
[qemu.git] / hw / eepro100.c
index a636d309bef74b6d31908cca111460c43695bce4..4e3c52f50a43cb6dc7a9deb54681f410f8a60e17 100644 (file)
@@ -1901,7 +1901,7 @@ static int e100_nic_init(PCIDevice *pci_dev)
 
     qemu_register_reset(nic_reset, s);
 
-    s->vmstate = qemu_malloc(sizeof(vmstate_eepro100));
+    s->vmstate = g_malloc(sizeof(vmstate_eepro100));
     memcpy(s->vmstate, &vmstate_eepro100, sizeof(vmstate_eepro100));
     s->vmstate->name = s->nic->nc.model;
     vmstate_register(&pci_dev->qdev, -1, s->vmstate, s);