mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
free memory properly in cleanup patch
virsh schedinfo inactive-domain will trigger the problem.
This commit is contained in:
1 parent
6fee3da262
commit
3c1326385a
1 file changed
+5
-2
+5
-2
@@ -945,8 +945,11 @@ remoteDispatchDomainGetSchedulerParameters(struct qemud_server *server ATTRIBUTE
|
||||
cleanup:
|
||||
if (rv < 0) {
|
||||
remoteDispatchError(rerr);
|
||||
for (i = 0 ; i < nparams ; i++)
|
||||
VIR_FREE(ret->params.params_val[i].field);
|
||||
if (ret->params.params_val) {
|
||||
for (i = 0 ; i < nparams ; i++)
|
||||
VIR_FREE(ret->params.params_val[i].field);
|
||||
VIR_FREE(ret->params.params_val);
|
||||
}
|
||||
}
|
||||
if (dom)
|
||||
virDomainFree(dom);
|
||||
|
||||
Reference in new issue
Block a user