mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
@@ -447,7 +447,7 @@ static void mcf_fec_cleanup(VLANClientState *nc)
|
||||
|
||||
cpu_unregister_io_memory(s->mmio_index);
|
||||
|
||||
qemu_free(s);
|
||||
g_free(s);
|
||||
}
|
||||
|
||||
static NetClientInfo net_mcf_fec_info = {
|
||||
@@ -464,7 +464,7 @@ void mcf_fec_init(NICInfo *nd, target_phys_addr_t base, qemu_irq *irq)
|
||||
|
||||
qemu_check_nic_model(nd, "mcf_fec");
|
||||
|
||||
s = (mcf_fec_state *)qemu_mallocz(sizeof(mcf_fec_state));
|
||||
s = (mcf_fec_state *)g_malloc0(sizeof(mcf_fec_state));
|
||||
s->irq = irq;
|
||||
s->mmio_index = cpu_register_io_memory(mcf_fec_readfn,
|
||||
mcf_fec_writefn, s,
|
||||
|
||||
Reference in New Issue
Block a user