[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
- [PATCH v8 00/16] QMP/HMP: introduce 'dumpdtb', Daniel Henrique Barboza, 2022/09/26
- [PATCH v8 02/16] hw/core: free ms->fdt in machine_finalize(),
Daniel Henrique Barboza <=
- [PATCH v8 01/16] qmp/hmp, device_tree.c: introduce dumpdtb, Daniel Henrique Barboza, 2022/09/26
- [PATCH v8 06/16] hw/nios2: set machine->fdt in nios2_load_dtb(), Daniel Henrique Barboza, 2022/09/26
- [PATCH v8 05/16] hw/microblaze: set machine->fdt in microblaze_load_dtb(), Daniel Henrique Barboza, 2022/09/26
- [PATCH v8 08/16] hw/ppc: set machine->fdt in bamboo_load_device_tree(), Daniel Henrique Barboza, 2022/09/26
- [PATCH v8 12/16] hw/ppc: set machine->fdt in pnv_reset(), Daniel Henrique Barboza, 2022/09/26
- [PATCH v8 16/16] hw/xtensa: set machine->fdt in xtfpga_init(), Daniel Henrique Barboza, 2022/09/26
- [PATCH v8 10/16] hw/ppc: set machine->fdt in xilinx_load_device_tree(), Daniel Henrique Barboza, 2022/09/26
- [PATCH v8 11/16] hw/ppc: set machine->fdt in pegasos2_machine_reset(), Daniel Henrique Barboza, 2022/09/26
- [PATCH v8 15/16] hw/riscv: set machine->fdt in spike_board_init(), Daniel Henrique Barboza, 2022/09/26
- [PATCH v8 03/16] hw/arm: do not free machine->fdt in arm_load_dtb(), Daniel Henrique Barboza, 2022/09/26