Received: from eggs.gnu.org ([2001:4830:134:3::10]:58260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNjut-0003bw-IG for qemu-devel@nongnu.org; Thu, 14 Jul 2016 12:55:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNjur-0000Jk-EW for qemu-devel@nongnu.org; Thu, 14 Jul 2016 12:55:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNjur-0000J6-8n for qemu-devel@nongnu.org; Thu, 14 Jul 2016 12:55:13 -0400 From: Igor Mammedov Date: Thu, 14 Jul 2016 18:54:43 +0200 Message-Id: <1468515285-173356-15-git-send-email-imammedo@redhat.com> In-Reply-To: <1468515285-173356-1-git-send-email-imammedo@redhat.com> References: <1468515285-173356-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH v4 14/16] target-i386: fix apic object leak when CPU is deleted List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pkrempa@redhat.com, ehabkost@redhat.com, mst@redhat.com, eduardo.otubo@profitbricks.com, Bandan Das Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost --- target-i386/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index fb528de..73ed447 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -2831,6 +2831,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<> */ -- 2.7.4