mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00: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 {
|
} else {
|
||||||
vshError(ctl, _("Failed to build pool %s"), name);
|
vshError(ctl, _("Failed to build pool %s"), name);
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
virStoragePoolFree(pool);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virStoragePoolFree(pool);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user