mirror of
https://github.com/mii443/qemu.git
synced 2025-08-31 11:29:26 +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:
@ -431,7 +431,7 @@ int sh_intc_init(struct intc_desc *desc,
|
||||
desc->nr_prio_regs = nr_prio_regs;
|
||||
|
||||
i = sizeof(struct intc_source) * nr_sources;
|
||||
desc->sources = qemu_mallocz(i);
|
||||
desc->sources = g_malloc0(i);
|
||||
|
||||
for (i = 0; i < desc->nr_sources; i++) {
|
||||
struct intc_source *source = desc->sources + i;
|
||||
|
Reference in New Issue
Block a user