Commit eec72a7f authored by Charles G. Waldman's avatar Charles G. Waldman

Add missing Py_DECREF in fast_cfunction. Partial fix for SF bug

#127699.
parent 2a78cf22
......@@ -2769,9 +2769,12 @@ fast_cfunction(PyObject *func, PyObject ***pp_stack, int na)
if (na == 0)
return (*meth)(self, NULL);
else if (na == 1)
return (*meth)(self, EXT_POP(*pp_stack));
else {
else if (na == 1) {
PyObject *arg = EXT_POP(*pp_stack);
PyObject *result = (*meth)(self, arg);
Py_DECREF(arg);
return result;
} else {
PyObject *args = load_args(pp_stack, na);
PyObject *result = (*meth)(self, args);
Py_DECREF(args);
......
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