arm/xlnx-zynqmp: fix memory leak
fix CID 1311372. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Message-Id: <1436489490-236-4-git-send-email-arei.gonglei@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
586d2142a9
commit
5348c62cab
@ -144,6 +144,7 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp)
|
|||||||
} else {
|
} else {
|
||||||
s->boot_cpu_ptr = &s->apu_cpu[i];
|
s->boot_cpu_ptr = &s->apu_cpu[i];
|
||||||
}
|
}
|
||||||
|
g_free(name);
|
||||||
|
|
||||||
object_property_set_int(OBJECT(&s->apu_cpu[i]), GIC_BASE_ADDR,
|
object_property_set_int(OBJECT(&s->apu_cpu[i]), GIC_BASE_ADDR,
|
||||||
"reset-cbar", &err);
|
"reset-cbar", &err);
|
||||||
@ -181,6 +182,7 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp)
|
|||||||
} else {
|
} else {
|
||||||
s->boot_cpu_ptr = &s->rpu_cpu[i];
|
s->boot_cpu_ptr = &s->rpu_cpu[i];
|
||||||
}
|
}
|
||||||
|
g_free(name);
|
||||||
|
|
||||||
object_property_set_bool(OBJECT(&s->rpu_cpu[i]), true, "reset-hivecs",
|
object_property_set_bool(OBJECT(&s->rpu_cpu[i]), true, "reset-hivecs",
|
||||||
&err);
|
&err);
|
||||||
|
Loading…
Reference in New Issue
Block a user