ms->fdt must also be freed in machine_finalize() similar to what is
already done with other MachineState objects.

Suggested-by: Philippe Mathieu-Daudé <f4...@amsat.org>
Signed-off-by: Daniel Henrique Barboza <danielhb...@gmail.com>
---
 hw/core/machine.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/core/machine.c b/hw/core/machine.c
index aa520e74a8..aa8c1c5c36 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -1114,6 +1114,7 @@ static void machine_finalize(Object *obj)
     g_free(ms->device_memory);
     g_free(ms->nvdimms_state);
     g_free(ms->numa_state);
+    g_free(ms->fdt);
 }
 
 bool machine_usb(MachineState *machine)
-- 
2.37.3


Reply via email to