Revision 7267c094 hw/mcf_fec.c
b/hw/mcf_fec.c | ||
---|---|---|
447 | 447 |
|
448 | 448 |
cpu_unregister_io_memory(s->mmio_index); |
449 | 449 |
|
450 |
qemu_free(s);
|
|
450 |
g_free(s);
|
|
451 | 451 |
} |
452 | 452 |
|
453 | 453 |
static NetClientInfo net_mcf_fec_info = { |
... | ... | |
464 | 464 |
|
465 | 465 |
qemu_check_nic_model(nd, "mcf_fec"); |
466 | 466 |
|
467 |
s = (mcf_fec_state *)qemu_mallocz(sizeof(mcf_fec_state));
|
|
467 |
s = (mcf_fec_state *)g_malloc0(sizeof(mcf_fec_state));
|
|
468 | 468 |
s->irq = irq; |
469 | 469 |
s->mmio_index = cpu_register_io_memory(mcf_fec_readfn, |
470 | 470 |
mcf_fec_writefn, s, |
Also available in: Unified diff