mirror of
https://github.com/mii443/qemu.git
synced 2025-12-12 05:18:37 +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:
@@ -361,7 +361,7 @@ void sh_serial_init (target_phys_addr_t base, int feat,
|
||||
sh_serial_state *s;
|
||||
int s_io_memory;
|
||||
|
||||
s = qemu_mallocz(sizeof(sh_serial_state));
|
||||
s = g_malloc0(sizeof(sh_serial_state));
|
||||
|
||||
s->feat = feat;
|
||||
s->flags = SH_SERIAL_FLAG_TEND | SH_SERIAL_FLAG_TDE;
|
||||
|
||||
Reference in New Issue
Block a user