mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +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);
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user