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 <david@redhat.com> Message-Id: <20180702094152.7882-1-david@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
43a473993f
commit
2ff4f67cab
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user