mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
LXC: free dst before lxcDomainAttachDeviceDiskLive returns
Free dst before lxcDomainAttachDeviceDiskLive returns Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
parent
21813c9fb5
commit
c82513acc2
@ -3023,6 +3023,7 @@ cleanup:
|
||||
virDomainAuditDisk(vm, NULL, def->src, "attach", ret == 0);
|
||||
if (dst && created && ret < 0)
|
||||
unlink(dst);
|
||||
VIR_FREE(dst);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user