mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-13 00:46:03 -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:
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user