summaryrefslogtreecommitdiffstats
path: root/Doc/includes
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2017-08-24 05:55:17 (GMT)
committerGitHub <noreply@github.com>2017-08-24 05:55:17 (GMT)
commita6296d34a478b4f697ea9db798146195075d496c (patch)
tree6a26d56297f7d85dd6a8f18bca96e0c4ffb60802 /Doc/includes
parentbf9075a0c55186d2f34df63e6c8512dd6414ff4b (diff)
downloadcpython-a6296d34a478b4f697ea9db798146195075d496c.zip
cpython-a6296d34a478b4f697ea9db798146195075d496c.tar.gz
cpython-a6296d34a478b4f697ea9db798146195075d496c.tar.bz2
bpo-31095: fix potential crash during GC (GH-2974)
Diffstat (limited to 'Doc/includes')
-rw-r--r--Doc/includes/noddy4.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/includes/noddy4.c b/Doc/includes/noddy4.c
index eb9622a..08ba4c3 100644
--- a/Doc/includes/noddy4.c
+++ b/Doc/includes/noddy4.c
@@ -46,6 +46,7 @@ Noddy_clear(Noddy *self)
static void
Noddy_dealloc(Noddy* self)
{
+ PyObject_GC_UnTrack(self);
Noddy_clear(self);
Py_TYPE(self)->tp_free((PyObject*)self);
}