commit | 5951f2300f43d75d344d542e171daed47a0382a6 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Thu Dec 24 10:35:35 2015 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Thu Dec 24 10:35:35 2015 +0200 |
tree | 2e173dda0c0d4c4bf887e8a6a309430d0d9cd5be | |
parent | 6ed42ea08b3a961944e94f1dd941ffabc7657065 [diff] [blame] |
Issue #20440: Massive replacing unsafe attribute setting code with special macro Py_SETREF.
diff --git a/Objects/frameobject.c b/Objects/frameobject.c index f9e4a0e..6ca390b 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c
@@ -859,8 +859,7 @@ } } else if (values[j] != value) { Py_XINCREF(value); - Py_XDECREF(values[j]); - values[j] = value; + Py_SETREF(values[j], value); } Py_XDECREF(value); }