mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00
Fix qemu_malloc/qemu_free use in rtl8139.c
rtl8139.c is using malloc()/free() instead of qemu_malloc()/qemu_free(). Fix it. Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
834fac78d4
commit
2bc6f59b23
1 changed files with 2 additions and 2 deletions
|
@ -1985,7 +1985,7 @@ static int rtl8139_cplus_transmit_one(RTL8139State *s)
|
|||
if (!s->cplus_txbuffer)
|
||||
{
|
||||
s->cplus_txbuffer_len = CP_TX_BUFFER_SIZE;
|
||||
s->cplus_txbuffer = malloc(s->cplus_txbuffer_len);
|
||||
s->cplus_txbuffer = qemu_malloc(s->cplus_txbuffer_len);
|
||||
s->cplus_txbuffer_offset = 0;
|
||||
|
||||
DEBUG_PRINT(("RTL8139: +++ C+ mode transmission buffer allocated space %d\n", s->cplus_txbuffer_len));
|
||||
|
@ -2300,7 +2300,7 @@ static int rtl8139_cplus_transmit_one(RTL8139State *s)
|
|||
}
|
||||
else
|
||||
{
|
||||
free(saved_buffer);
|
||||
qemu_free(saved_buffer);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue