From: David Allan Date: Sun, 21 Feb 2010 14:28:34 +0000 (+0100) Subject: Fixed reference count in virsh pool-build command X-Git-Tag: v0.7.7~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=617075f49f1d304deb70bab7eb82b24c32d2a85b;p=thirdparty%2Flibvirt.git Fixed reference count in virsh pool-build command * tools/virsh.c: call virStoragePoolFree() in the main path too --- 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; }