From 3db638484def6acea263839884bcac842a8b077a Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Tue, 15 May 2012 00:04:54 +0200 Subject: [PATCH] Fix a case of missing exception on return NULL Now that the noise is gone, this is an actual error. --- xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xattr.c b/xattr.c index a4d6988..446af0a 100644 --- a/xattr.c +++ b/xattr.c @@ -459,7 +459,7 @@ get_all(PyObject *self, PyObject *args, PyObject *keywds) if(errno == ERANGE) { nval = _get_obj(&tgt, s, NULL, 0); if((buf_val = PyMem_Realloc(buf_val, nval)) == NULL) { - res = NULL; + res = PyErr_NoMemory(); Py_DECREF(mylist); goto free_buf_list; } -- 2.39.5