From: Serhiy Storchaka Date: Mon, 11 Apr 2016 06:53:37 +0000 (+0300) Subject: Issue #26200: Restored more safe usages of Py_SETREF. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb650631f239823a951cc141b14325ab32d64711;p=python Issue #26200: Restored more safe usages of Py_SETREF. --- diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c index b2cfd75394..e0781a98d5 100644 --- a/Modules/_functoolsmodule.c +++ b/Modules/_functoolsmodule.c @@ -320,9 +320,9 @@ partial_setstate(partialobject *pto, PyObject *state) else Py_INCREF(dict); - Py_XSETREF(pto->fn, fn); - Py_XSETREF(pto->args, fnargs); - Py_XSETREF(pto->kw, kw); + Py_SETREF(pto->fn, fn); + Py_SETREF(pto->args, fnargs); + Py_SETREF(pto->kw, kw); Py_XSETREF(pto->dict, dict); Py_RETURN_NONE; }