summaryrefslogtreecommitdiff
path: root/python/rpmds-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/rpmds-py.c
parent4e5132e443a9f062bfad83f531b43a9d5d6df1da (diff)
downloadrpm-dc6946e72eb69e67d1e00f741f5ba595fa740a18.tar.gz
rpm-dc6946e72eb69e67d1e00f741f5ba595fa740a18.tar.bz2
rpm-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/rpmds-py.c')
-rw-r--r--python/rpmds-py.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmds-py.c b/python/rpmds-py.c
index ebbf82ef8..71ef93fde 100644
--- a/python/rpmds-py.c
+++ b/python/rpmds-py.c
@@ -508,7 +508,7 @@ rpmds dsFromDs(rpmdsObject * s)
PyObject * rpmds_Wrap(PyTypeObject *subtype, rpmds ds)
{
rpmdsObject * s = (rpmdsObject *)subtype->tp_alloc(subtype, 0);
- if (s == NULL) return PyErr_NoMemory();
+ if (s == NULL) return NULL;
s->ds = ds;
s->active = 0;