summaryrefslogtreecommitdiff
path: root/python/rpmmi-py.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-10-09 11:57:46 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-10-09 11:57:46 +0300
commitdc6946e72eb69e67d1e00f741f5ba595fa740a18 (patch)
tree7453273e57fef8b59fcdf511388b01ac576551e0 /python/rpmmi-py.c
parent4e5132e443a9f062bfad83f531b43a9d5d6df1da (diff)
downloadlibrpm-tizen-dc6946e72eb69e67d1e00f741f5ba595fa740a18.tar.gz
librpm-tizen-dc6946e72eb69e67d1e00f741f5ba595fa740a18.tar.bz2
librpm-tizen-dc6946e72eb69e67d1e00f741f5ba595fa740a18.zip
Revert explicit PyErr_NoMemory() returns to just returning NULL
- tp_alloc failing is likely to be OOM but we dont know that for a fact, and the failing method is responsible for setting the exception
Diffstat (limited to 'python/rpmmi-py.c')
-rw-r--r--python/rpmmi-py.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmmi-py.c b/python/rpmmi-py.c
index 1d06b5ed9..b3cd6d2ab 100644
--- a/python/rpmmi-py.c
+++ b/python/rpmmi-py.c
@@ -192,7 +192,7 @@ PyTypeObject rpmmi_Type = {
PyObject * rpmmi_Wrap(PyTypeObject *subtype, rpmdbMatchIterator mi, PyObject *s)
{
rpmmiObject * mio = (rpmmiObject *)subtype->tp_alloc(subtype, 0);
- if (mio == NULL) return PyErr_NoMemory();
+ if (mio == NULL) return NULL;
mio->mi = mi;
mio->ref = s;