mirror of
https://github.com/python/cpython.git
synced 2026-10-28 10:25:05 +08:00
gh-159739: Track group records for cyclic garbage collection (#159778)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
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`.
|
||||
@@ -111,6 +111,7 @@ mkgrent(PyObject *module, struct group *p)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
PyObject_GC_Track(v);
|
||||
return v;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user