mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-30 13:37:17 +00:00
free memory properly in cleanup patch
virsh schedinfo inactive-domain will trigger the problem.
This commit is contained in:
parent
6fee3da262
commit
3c1326385a
@ -945,8 +945,11 @@ remoteDispatchDomainGetSchedulerParameters(struct qemud_server *server ATTRIBUTE
|
|||||||
cleanup:
|
cleanup:
|
||||||
if (rv < 0) {
|
if (rv < 0) {
|
||||||
remoteDispatchError(rerr);
|
remoteDispatchError(rerr);
|
||||||
for (i = 0 ; i < nparams ; i++)
|
if (ret->params.params_val) {
|
||||||
VIR_FREE(ret->params.params_val[i].field);
|
for (i = 0 ; i < nparams ; i++)
|
||||||
|
VIR_FREE(ret->params.params_val[i].field);
|
||||||
|
VIR_FREE(ret->params.params_val);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (dom)
|
if (dom)
|
||||||
virDomainFree(dom);
|
virDomainFree(dom);
|
||||||
|
Loading…
Reference in New Issue
Block a user