gh-159739: Track group records for cyclic garbage collection (#159778)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Jelle ZijlstraandJelle Zijlstra authored and GitHub committed 2026-10-20 10:20:07 -07:00
1 parent 17df836e6d
commit c2deb791c5
2 files changed
+3

No files matched your search

@@ -0,0 +1,2 @@
Allow cyclic garbage collection to reclaim group records returned by
:mod:`grp`.
+1
View File
@@ -111,6 +111,7 @@ mkgrent(PyObject *module, struct group *p)
return NULL;
}
PyObject_GC_Track(v);
return v;
}