diff options
Diffstat (limited to 'hw/xilinx_axienet.c')
-rw-r--r-- | hw/xilinx_axienet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/xilinx_axienet.c b/hw/xilinx_axienet.c index 464d275ad7..b875aad019 100644 --- a/hw/xilinx_axienet.c +++ b/hw/xilinx_axienet.c @@ -789,8 +789,8 @@ static void eth_cleanup(VLANClientState *nc) { /* FIXME. */ struct XilinxAXIEnet *s = DO_UPCAST(NICState, nc, nc)->opaque; - qemu_free(s->rxmem); - qemu_free(s); + g_free(s->rxmem); + g_free(s); } static void @@ -871,7 +871,7 @@ static int xilinx_enet_init(SysBusDevice *dev) s->TEMAC.parent = s; - s->rxmem = qemu_malloc(s->c_rxmem); + s->rxmem = g_malloc(s->c_rxmem); axienet_reset(s); return 0; |