[libvirt] [libvirt-python PATCHv2 44/44] Simplify out of memory error case
Doug Goldstein
cardoe at cardoe.com
Tue Nov 19 19:41:04 UTC 2013
On Tue, Nov 19, 2013 at 1:36 PM, Doug Goldstein <cardoe at cardoe.com> wrote:
> ---
> libvirt-override.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/libvirt-override.c b/libvirt-override.c
> index 0464f49..570918c 100644
> --- a/libvirt-override.c
> +++ b/libvirt-override.c
> @@ -167,8 +167,7 @@ setPyVirTypedParameter(PyObject *info,
> }
>
> if (VIR_ALLOC_N(ret, size) < 0) {
> - PyErr_NoMemory();
> - return NULL;
> + return PyErr_NoMemory();
> }
>
> temp = &ret[0];
> --
> 1.8.3.2
>
This wasn't meant to be part of this series. It was from a comment
Eric made on one of the patches that should be a separate change.
--
Doug Goldstein
More information about the libvir-list
mailing list