提交 978cf8a0 编写于 作者: C Chen Hanxiao 提交者: Daniel P. Berrange

LXC: free dst before lxcDomainAttachDeviceDiskLive returns

Free dst before lxcDomainAttachDeviceDiskLive returns
Signed-off-by: NChen Hanxiao <chenhanxiao@cn.fujitsu.com>
(cherry picked from commit c82513ac)
上级 d2db82a2
...@@ -3384,6 +3384,7 @@ cleanup: ...@@ -3384,6 +3384,7 @@ cleanup:
virDomainAuditDisk(vm, NULL, def->src, "attach", ret == 0); virDomainAuditDisk(vm, NULL, def->src, "attach", ret == 0);
if (dst && created && ret < 0) if (dst && created && ret < 0)
unlink(dst); unlink(dst);
VIR_FREE(dst);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册