mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VIR_FREE(def->src);
|
||||||
|
virDomainDiskHostDefFree(def->nhosts, def->hosts);
|
||||||
|
virDomainDiskAuthClear(def);
|
||||||
|
|
||||||
switch ((enum virStoragePoolType) pooldef->type) {
|
switch ((enum virStoragePoolType) pooldef->type) {
|
||||||
case VIR_STORAGE_POOL_DIR:
|
case VIR_STORAGE_POOL_DIR:
|
||||||
case VIR_STORAGE_POOL_FS:
|
case VIR_STORAGE_POOL_FS:
|
||||||
|
Loading…
Reference in New Issue
Block a user