summaryrefslogtreecommitdiff
path: root/Objects/funcobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-10 18:05:40 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-10 18:05:40 +0300
commit57a01d3a0ee20ee9eea69b658c6bac0f39541625 (patch)
treecdeb89c231bbf902b59832b1b1f6dbe9a775292e /Objects/funcobject.c
parente0805cf10ea84b44a13ad5649267edba7cb83ee9 (diff)
downloadcpython-git-57a01d3a0ee20ee9eea69b658c6bac0f39541625.tar.gz
Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r--Objects/funcobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index 4252e930bd..e6c327d22f 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -527,7 +527,7 @@ func_new(PyTypeObject* type, PyObject* args, PyObject* kw)
if (name != Py_None) {
Py_INCREF(name);
- Py_XSETREF(newfunc->func_name, name);
+ Py_SETREF(newfunc->func_name, name);
}
if (defaults != Py_None) {
Py_INCREF(defaults);