mirror of https://github.com/python/cpython
7e3f09cad9
Fix potential race condition in code patterns: * Replace "Py_DECREF(var); var = new;" with "Py_SETREF(var, new);" * Replace "Py_XDECREF(var); var = new;" with "Py_XSETREF(var, new);" * Replace "Py_CLEAR(var); var = new;" with "Py_XSETREF(var, new);" Other changes: * Replace "old = var; var = new; Py_DECREF(var)" with "Py_SETREF(var, new);" * Replace "old = var; var = new; Py_XDECREF(var)" with "Py_XSETREF(var, new);" * And remove the "old" variable. |
||
---|---|---|
.. | ||
custom.c | ||
custom2.c | ||
custom3.c | ||
custom4.c | ||
dbpickle.py | ||
diff.py | ||
email-alternative.py | ||
email-dir.py | ||
email-headers.py | ||
email-mime.py | ||
email-read-alternative.py | ||
email-simple.py | ||
email-unpack.py | ||
minidom-example.py | ||
mp_newtype.py | ||
mp_pool.py | ||
mp_workers.py | ||
ndiff.py | ||
run-func.c | ||
setup.py | ||
sublist.c | ||
test.py | ||
turtle-star.py | ||
typestruct.h | ||
tzinfo_examples.py | ||
wasm-notavail.rst |