Fixed reference count in virsh pool-build command

* tools/virsh.c: call virStoragePoolFree() in the main path too
This commit is contained in:
David Allan 2010-02-21 15:28:34 +01:00 committed by Daniel Veillard
parent d5739ab56a
commit 617075f49f

View File

@ -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;
}