machine: properly free device_memory
PATCH 1/1 machine: properly free device_memory
Machines might have inititalized device_memory if they support memory devices, so let's properly free it.
Signed-off-by David Hildenbrand <[email protected]>
--- hw/core/machine.c | 1 + 1 file changed, 1 insertion(+)
hw/core/machine.c +1 -0
@@ -674,6 +674,7 @@ static void machine_finalize(Object *obj)g_free (ms->dumpdtb);g_free (ms->dt_compatible);g_free (ms->firmware); +g_free (ms->device_memory); }bool machine_usb (MachineState *machine)
Signature · 1 line
2.17.1
Quoted 13 lines · On Mon, 2 Jul 2018 11:41:52 +0200 David Hildenbrand <[email protected]> wrote:
Machines might have inititalized
device_memoryif they support memory devices, so let's properly free it.Signed-off-by David Hildenbrand <[email protected]>--- hw/core/machine.c | 1 + 1 file changed, 1 insertion(+)hw/core/machine.c +0
-0
hw/core/machine.c static void machine_finalize(Object *obj) · line 680
Quoted 7 lines
hw/core/machine.c +1
-0@@ -674,6 +674,7 @@ static void machine_finalize(Object *obj)g_free (ms->dumpdtb);g_free (ms->dt_compatible);g_free (ms->firmware); +g_free (ms->device_memory); }bool machine_usb (MachineState *machine)
Reviewed-by Igor Mammedov <[email protected]>
Eduardo Habkost
AppliedQuoted 4 lines · David Hildenbrand
Machines might have inititalized
device_memoryif they support memory devices, so let's properly free it.Signed-off-by David Hildenbrand <[email protected]>
Queued, thanks.
Signature · 1 line
Eduardo