diff --git a/qemu/target-i386/cpu.c b/qemu/target-i386/cpu.c index e3bc00ae..49ddd8ef 100644 --- a/qemu/target-i386/cpu.c +++ b/qemu/target-i386/cpu.c @@ -2909,6 +2909,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<> */ apic = APIC_COMMON(cpu->apic_state);