changeset: 100916:f21740a1abde branch: 2.7 parent: 100908:9cf8572abe58 user: Serhiy Storchaka date: Mon Apr 11 09:53:37 2016 +0300 files: Modules/_functoolsmodule.c description: Issue #26200: Restored more safe usages of Py_SETREF. diff -r 9cf8572abe58 -r f21740a1abde Modules/_functoolsmodule.c --- a/Modules/_functoolsmodule.c Sun Apr 10 18:05:12 2016 +0300 +++ b/Modules/_functoolsmodule.c Mon Apr 11 09:53:37 2016 +0300 @@ -320,9 +320,9 @@ 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; }