mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-28 04:21:50 -06: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:
parent
14015304b6
commit
7267c0947d
357 changed files with 1672 additions and 1674 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue