diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 22:09:37 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-20 23:01:08 -0500 |
commit | 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c (patch) | |
tree | 9aa05d6e05ed83e67bf014f6745a3081b8407dc5 /device_tree.c | |
parent | 14015304b662e8f8ccce46c5a6927af6a14c510b (diff) | |
download | qemu-7267c0947d7e8ae5dff7bafd932c3bc285f43e5c.zip qemu-7267c0947d7e8ae5dff7bafd932c3bc285f43e5c.tar.gz qemu-7267c0947d7e8ae5dff7bafd932c3bc285f43e5c.tar.bz2 |
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>
Diffstat (limited to 'device_tree.c')
-rw-r--r-- | device_tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/device_tree.c b/device_tree.c index f5d5eb1..3a224d1 100644 --- a/device_tree.c +++ b/device_tree.c @@ -43,7 +43,7 @@ void *load_device_tree(const char *filename_path, int *sizep) /* Expand to 2x size to give enough room for manipulation. */ dt_size *= 2; /* First allocate space in qemu for device tree */ - fdt = qemu_mallocz(dt_size); + fdt = g_malloc0(dt_size); dt_file_load_size = load_image(filename_path, fdt); if (dt_file_load_size < 0) { @@ -68,7 +68,7 @@ void *load_device_tree(const char *filename_path, int *sizep) return fdt; fail: - qemu_free(fdt); + g_free(fdt); return NULL; } |