mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
qemu: Clear old translated pool source
Clear the old data to avoid leaking it when attempting to re-translate a pool on the same domain object.
This commit is contained in:
parent
0df53f0432
commit
bdeb0f0123
@ -1360,6 +1360,10 @@ qemuTranslateDiskSourcePool(virConnectPtr conn,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
VIR_FREE(def->src);
|
||||
virDomainDiskHostDefFree(def->nhosts, def->hosts);
|
||||
virDomainDiskAuthClear(def);
|
||||
|
||||
switch ((enum virStoragePoolType) pooldef->type) {
|
||||
case VIR_STORAGE_POOL_DIR:
|
||||
case VIR_STORAGE_POOL_FS:
|
||||
|
Loading…
Reference in New Issue
Block a user