Commit 101bac20 authored by Neal Norwitz's avatar Neal Norwitz

Closure can't be NULL at this point since we know it's a tuple.

Reported by Klocwork # 74.
parent e4abc232
......@@ -141,7 +141,7 @@ PyFunction_SetClosure(PyObject *op, PyObject *closure)
if (closure == Py_None)
closure = NULL;
else if (PyTuple_Check(closure)) {
Py_XINCREF(closure);
Py_INCREF(closure);
}
else {
PyErr_Format(PyExc_SystemError,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment