diff options
author | Guido van Rossum <guido@python.org> | 2001-12-03 19:22:38 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-12-03 19:22:38 (GMT) |
commit | be5234610af367f00c23c01e44ea165fbfc64b98 (patch) | |
tree | 7ae75860c35ed46cac73a905d53a5d693df84abc /Objects/funcobject.c | |
parent | 1da50f6c6ead4629df8b4c359f92547447b67324 (diff) | |
download | cpython-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.)
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r-- | Objects/funcobject.c | 1 |
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; |