SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72156 0 84 Python

bpo-1635741: Fix ref leak in _PyWarnings_Init() error path (GH-23151)

Replace PyModule_AddObject() with PyModule_AddObjectRef() in the
_warnings module to fix a reference leak on error.

Use also PyModule_AddObjectRef() in importdl.c.
V
Victor Stinner committed
58ca33b4674f39189b03c9a39fa7b676b43b3d08
Parent: 18ce7f1
Committed by GitHub <noreply@github.com> on 11/4/2020, 4:33:06 PM