Reproducer:
import _struct; _struct.calcsize('b')
Memory Leak:
./python -X showrefcount main.py [367 refs, 150 blocks]
Commit tested: 27b9894
Possible fix in #94239.
gh-94207: Fix struct module leak (GH-94239)
pythongh-94207: Fix struct module leak (pythonGH-94239)
gh-94207: Fix struct module leak (GH-94239) (GH-94265)
[3.10] gh-94207: Fix struct module leak (GH-94239) (GH-94266)
Fixed in #94239 and its backports. Thanks for the report!
Revert 30935 defer bpo45162 to 312 (#94285)
Activity
mdickinson commented on Jun 24, 2022
Possible fix in #94239.
gh-94207: Fix struct module leak (GH-94239)
pythongh-94207: Fix struct module leak (pythonGH-94239)
pythongh-94207: Fix struct module leak (pythonGH-94239)
gh-94207: Fix struct module leak (GH-94239) (GH-94265)
[3.10] gh-94207: Fix struct module leak (GH-94239) (GH-94266)
mdickinson commented on Jun 25, 2022
Fixed in #94239 and its backports. Thanks for the report!
Revert 30935 defer bpo45162 to 312 (#94285)