[libvirt] [libvirt-python PATCHv2 44/44] Simplify out of memory error case

Doug Goldstein cardoe at cardoe.com
Tue Nov 19 19:36:03 UTC 2013


---
 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




More information about the libvir-list mailing list