mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -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
|
@ -75,7 +75,7 @@ static int petalogix_load_device_tree(target_phys_addr_t addr,
|
|||
path = qemu_find_file(QEMU_FILE_TYPE_BIOS, BINARY_DEVICE_TREE_FILE);
|
||||
if (path) {
|
||||
fdt = load_device_tree(path, &fdt_size);
|
||||
qemu_free(path);
|
||||
g_free(path);
|
||||
}
|
||||
if (!fdt)
|
||||
return 0;
|
||||
|
@ -93,7 +93,7 @@ static int petalogix_load_device_tree(target_phys_addr_t addr,
|
|||
path = qemu_find_file(QEMU_FILE_TYPE_BIOS, BINARY_DEVICE_TREE_FILE);
|
||||
if (path) {
|
||||
fdt_size = load_image_targphys(path, addr, 0x10000);
|
||||
qemu_free(path);
|
||||
g_free(path);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue