Commit 2ff4f67c authored by David Hildenbrand's avatar David Hildenbrand Committed by Eduardo Habkost
Browse files

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: default avatarDavid Hildenbrand <david@redhat.com>
Message-Id: <20180702094152.7882-1-david@redhat.com>
Reviewed-by: default avatarIgor Mammedov <imammedo@redhat.com>
Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
parent 43a47399
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)