mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fixed reference count in virsh pool-build command
* tools/virsh.c: call virStoragePoolFree() in the main path too
This commit is contained in:
committed by
Daniel Veillard
parent
d5739ab56a
commit
617075f49f
@@ -4036,9 +4036,10 @@ cmdPoolBuild(vshControl *ctl, const vshCmd *cmd)
|
||||
} else {
|
||||
vshError(ctl, _("Failed to build pool %s"), name);
|
||||
ret = FALSE;
|
||||
virStoragePoolFree(pool);
|
||||
}
|
||||
|
||||
virStoragePoolFree(pool);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user