projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6816b1b
)
target-i386: Fix apic object leak when CPU is deleted
author
Igor Mammedov
<imammedo@redhat.com>
Wed, 6 Jul 2016 06:20:53 +0000
(08:20 +0200)
committer
Eduardo Habkost
<ehabkost@redhat.com>
Wed, 20 Jul 2016 15:02:18 +0000
(12:02 -0300)
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/cpu.c
patch
|
blob
|
history
diff --git
a/target-i386/cpu.c
b/target-i386/cpu.c
index
6c36b13
..
5d0e085
100644
(file)
--- 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<> */