diff options
author | Igor Mammedov <imammedo@redhat.com> | 2016-07-06 08:20:53 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2016-07-20 12:02:18 -0300 |
commit | 67e55caa6dcb91c80428cee6fe463f8dd8a755ab (patch) | |
tree | 39d2c0c7119db50ce215ef1509ce9bbdc85a00ed | |
parent | 6816b1b3811e839540df22855d975b6d76ae438b (diff) |
target-i386: Fix apic object leak when CPU is deleted
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-rw-r--r-- | target-i386/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 6c36b137b8..5d0e085c88 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -2828,6 +2828,7 @@ static void x86_cpu_apic_create(X86CPU *cpu, Error **errp) object_property_add_child(OBJECT(cpu), "lapic", OBJECT(cpu->apic_state), &error_abort); + object_unref(OBJECT(cpu->apic_state)); qdev_prop_set_uint8(cpu->apic_state, "id", cpu->apic_id); /* TODO: convert to link<> */ |