From 617075f49f1d304deb70bab7eb82b24c32d2a85b Mon Sep 17 00:00:00 2001 From: David Allan Date: Sun, 21 Feb 2010 15:28:34 +0100 Subject: [PATCH] Fixed reference count in virsh pool-build command * tools/virsh.c: call virStoragePoolFree() in the main path too --- tools/virsh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/virsh.c b/tools/virsh.c index c8ae9f2d50..dc9d44c017 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -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; } -- 2.47.2