mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-04 19:05:24 +00:00
LXC: free dst before lxcDomainAttachDeviceDiskLive returns
Free dst before lxcDomainAttachDeviceDiskLive returns Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com> (cherry picked from commit c82513acc2e1e0b035e5e53577a34fd68a530788)
This commit is contained in:
parent
c87ed6bf76
commit
9c88f97acb
@ -3177,6 +3177,7 @@ cleanup:
|
||||
virDomainAuditDisk(vm, NULL, def->src, "attach", ret == 0);
|
||||
if (dst && created && ret < 0)
|
||||
unlink(dst);
|
||||
VIR_FREE(dst);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user