qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v8 02/16] hw/core: free ms->fdt in machine_finalize()


From: Daniel Henrique Barboza
Subject: [PATCH v8 02/16] hw/core: free ms->fdt in machine_finalize()
Date: Mon, 26 Sep 2022 14:38:41 -0300

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

Suggested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Daniel Henrique Barboza <danielhb413@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

[Prev in Thread] Current Thread [Next in Thread]