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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]