]> granicus.if.org Git - python/commit
bpo-33418: Add tp_clear for function object (GH-8058)
authorINADA Naoki <methane@users.noreply.github.com>
Wed, 4 Jul 2018 02:15:50 +0000 (11:15 +0900)
committerGitHub <noreply@github.com>
Wed, 4 Jul 2018 02:15:50 +0000 (11:15 +0900)
commit3c452404ae178b742967589a0bb4a5ec768d76e0
tree4f7f0c7ee425ee37c9c47ac3a1bb0d698d90ea23
parentd8cba5d16f1333fd625726fc72e66afbd45b8d00
bpo-33418: Add tp_clear for function object (GH-8058)

Without tp_clear, GC can't break cyclic reference.
It will cause memory leak when cyclic reference is
created intentionally.
Misc/NEWS.d/next/Core and Builtins/2018-07-03-19-00-10.bpo-33418.cfGm3n.rst [new file with mode: 0644]
Objects/funcobject.c