diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-10-09 11:57:46 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-10-09 11:57:46 +0300 |
commit | dc6946e72eb69e67d1e00f741f5ba595fa740a18 (patch) | |
tree | 7453273e57fef8b59fcdf511388b01ac576551e0 /python/rpmmi-py.c | |
parent | 4e5132e443a9f062bfad83f531b43a9d5d6df1da (diff) | |
download | librpm-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.c | 2 |
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; |