Files
cpython/Modules
Miss Islington (bot) 4bc5f9fe8c gh-94207: Fix struct module leak (GH-94239) (GH-94265)
Make _struct.Struct a GC type

This fixes a memory leak in the _struct module, where as soon
as a Struct object is stored in the cache, there's a cycle from
the _struct module to the cache to Struct objects to the Struct
type back to the module. If _struct.Struct is not gc-tracked, that
cycle is never collected.

This PR makes _struct.Struct GC-tracked, and adds a regression test.
(cherry picked from commit 6b865349aa)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
2022-06-25 15:40:14 +01:00
..
2022-04-07 12:27:35 -07:00
2022-04-23 14:48:17 -07:00
2021-10-03 16:58:14 +03:00

Source files for standard library extension modules,
and former extension modules that are now builtin modules.