]> Git Repo - qemu.git/blobdiff - device_tree.c
tcg: Rearrange definitions and include statements
[qemu.git] / device_tree.c
index 751538ec1d066170070ecd521f1eeae0c72c5c27..86a694c95503357a6ee15cbe427922cd31ec319a 100644 (file)
@@ -41,6 +41,7 @@ void *load_device_tree(const char *filename_path, int *sizep)
     }
 
     /* Expand to 2x size to give enough room for manipulation.  */
+    dt_size += 10000;
     dt_size *= 2;
     /* First allocate space in qemu for device tree */
     fdt = g_malloc0(dt_size);
@@ -152,6 +153,7 @@ int qemu_devtree_add_subnode(void *fdt, const char *name)
     int retval;
 
     if (!basename) {
+        g_free(dupname);
         return -1;
     }
 
This page took 0.02004 seconds and 4 git commands to generate.