mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
cpu: do not use object_delete
CPUs are never added to the composition tree, so delete is achieved simply by removing the last references to them. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
b09995aef1
commit
5c099537a6
4 changed files with 5 additions and 5 deletions
|
@ -119,7 +119,7 @@ SPARCCPU *cpu_sparc_init(const char *cpu_model)
|
|||
}
|
||||
|
||||
if (cpu_sparc_register(env, cpu_model) < 0) {
|
||||
object_delete(OBJECT(cpu));
|
||||
object_unref(OBJECT(cpu));
|
||||
return NULL;
|
||||
}
|
||||
qemu_init_vcpu(env);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue