From be5234610af367f00c23c01e44ea165fbfc64b98 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 3 Dec 2001 19:22:38 +0000 Subject: 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.) --- Objects/funcobject.c | 1 - 1 file changed, 1 deletion(-) 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; -- cgit v0.12