提交 362c3b33 编写于 作者: M Michal Privoznik

qemuDomainDetachPciDiskDevice: Free allocated cgroup

This function potentially allocates new virCgroup but never
frees it.
上级 89ae6a5a
...@@ -1621,6 +1621,7 @@ int qemuDomainDetachPciDiskDevice(struct qemud_driver *driver, ...@@ -1621,6 +1621,7 @@ int qemuDomainDetachPciDiskDevice(struct qemud_driver *driver,
ret = 0; ret = 0;
cleanup: cleanup:
virCgroupFree(&cgroup);
VIR_FREE(drivestr); VIR_FREE(drivestr);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册