diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 18:05:40 +0300 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 18:05:40 +0300 |
| commit | 57a01d3a0ee20ee9eea69b658c6bac0f39541625 (patch) | |
| tree | cdeb89c231bbf902b59832b1b1f6dbe9a775292e /Objects/funcobject.c | |
| parent | e0805cf10ea84b44a13ad5649267edba7cb83ee9 (diff) | |
| download | cpython-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.c | 2 |
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); |
