From: David Hildenbrand Date: Mon, 2 Jul 2018 09:41:52 +0000 (+0200) Subject: machine: properly free device_memory X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2ff4f67cabbefb1842b06611e4f79857fc42925a;p=qemu.git 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 Message-Id: <20180702094152.7882-1-david@redhat.com> Reviewed-by: Igor Mammedov Signed-off-by: Eduardo Habkost --- diff --git a/hw/core/machine.c b/hw/core/machine.c index 2077328bcc..3fad6f8801 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -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)