bpo-38858: Fix ref leak in pycore_interp_init() by vstinner · Pull Request #17512 · python/cpython

@vstinner

bpo-38858, bpo-38997: _PySys_Create() returns a strong reference to
the sys module: Py_DECREF() is needed when we are done with the
module.

shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request

Jan 31, 2020
bpo-38858, bpo-38997: _PySys_Create() returns a strong reference to
the sys module: Py_DECREF() is needed when we are done with the
module.