summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-12-03 19:22:38 (GMT)
committerGuido van Rossum <guido@python.org>2001-12-03 19:22:38 (GMT)
commitbe5234610af367f00c23c01e44ea165fbfc64b98 (patch)
tree7ae75860c35ed46cac73a905d53a5d693df84abc
parent1da50f6c6ead4629df8b4c359f92547447b67324 (diff)
downloadcpython-be5234610af367f00c23c01e44ea165fbfc64b98.zip
cpython-be5234610af367f00c23c01e44ea165fbfc64b98.tar.gz
cpython-be5234610af367f00c23c01e44ea165fbfc64b98.tar.bz2
function_call(): Remove a bogus (and I mean *really* bogus) call to
Py_DECREF(arg) after the PyErr_NoMemory() call. (Armin Rigo, SF bug #488477.)
-rw-r--r--Objects/funcobject.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index d978c3f..ee016df 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -358,7 +358,6 @@ function_call(PyObject *func, PyObject *arg, PyObject *kw)
k = PyMem_NEW(PyObject *, 2*nk);
if (k == NULL) {
PyErr_NoMemory();
- Py_DECREF(arg);
return NULL;
}
pos = i = 0;