1
0
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:
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 { } 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;
} }