projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5f72e8
)
microblaze: fix leak of fdevice tree blob
author
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 1 Oct 2019 13:36:22 +0000
(15:36 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 4 Oct 2019 16:49:16 +0000
(18:49 +0200)
The device tree blob returned by load_device_tree is malloced.
Free it before returning.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/microblaze/boot.c
patch
|
blob
|
history
diff --git
a/hw/microblaze/boot.c
b/hw/microblaze/boot.c
index bade4d22c00d522d61aad8af268737c87e9d2b36..d1d7dfbbb9a7ffb4c0f4b0f7b10967cfe5a85261 100644
(file)
--- a/
hw/microblaze/boot.c
+++ b/
hw/microblaze/boot.c
@@
-100,6
+100,7
@@
static int microblaze_load_dtb(hwaddr addr,
}
cpu_physical_memory_write(addr, fdt, fdt_size);
+ g_free(fdt);
return fdt_size;
}