diff options
author | Jean-Christophe DUBOIS <jcd@tribudubois.net> | 2009-11-15 19:18:20 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-02 08:57:43 -0600 |
commit | 2bc6f59b232ae59bc7028ad14b25d79aa00bb5d2 (patch) | |
tree | 1aad6b8974ad17a103ef8701c2b396f1fbdde90b /hw/rtl8139.c | |
parent | 834fac78d4b7e68303d95c991862bc9fbf6e968c (diff) | |
download | qemu-2bc6f59b232ae59bc7028ad14b25d79aa00bb5d2.zip |
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>
Diffstat (limited to 'hw/rtl8139.c')
-rw-r--r-- | hw/rtl8139.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/rtl8139.c b/hw/rtl8139.c index c166db0742..be47f61c24 100644 --- a/hw/rtl8139.c +++ b/hw/rtl8139.c @@ -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 |