]> granicus.if.org Git - python/commit
bpo-38070: visit_decref() calls _PyObject_IsFreed() (GH-15782)
authorVictor Stinner <vstinner@redhat.com>
Mon, 9 Sep 2019 15:44:59 +0000 (17:44 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Sep 2019 15:44:59 +0000 (17:44 +0200)
commitd91d4de31745fc1ed4c7e6c208917827c9c472b6
tree70d189bf69d41e7fe873e1b0b7293a80f0e26dd4
parent3cbc23aa229bc5ec04845053df78eae5f54e0497
bpo-38070: visit_decref() calls _PyObject_IsFreed() (GH-15782)

In debug mode, visit_decref() now calls _PyObject_IsFreed() to ensure
that the object is not freed. If it's freed, the program fails with
an assertion error and Python dumps informations about the freed
object.
Modules/gcmodule.c