Fix arm & arm64 memleaks

This commit is contained in:
danghvu
2016-01-31 16:22:20 -06:00
parent 7c9f851e72
commit 36e53ad8a1
5 changed files with 39 additions and 2 deletions

View File

@ -54,7 +54,7 @@ static int machvirt_init(struct uc_struct *uc, MachineState *machine)
return -1;
}
cpuobj = object_new(uc, object_class_get_name(oc));
uc->cpu = cpuobj = object_new(uc, object_class_get_name(oc));
object_property_set_bool(uc, cpuobj, true, "realized", NULL);
}