]> granicus.if.org Git - python/commitdiff
function_call(): Remove a bogus (and I mean *really* bogus) call to
authorGuido van Rossum <guido@python.org>
Mon, 3 Dec 2001 19:22:38 +0000 (19:22 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 3 Dec 2001 19:22:38 +0000 (19:22 +0000)
Py_DECREF(arg) after the PyErr_NoMemory() call.  (Armin Rigo, SF bug
#488477.)

Objects/funcobject.c

index d978c3f07e750f7e44f6e65fa613bc67e0bb703c..ee016df4b6e56ba930abfba20a56e62ac3ef7e5e 100644 (file)
@@ -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;