summaryrefslogtreecommitdiffstats
path: root/Doc/includes
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2017-09-26 21:24:16 (GMT)
committerlarryhastings <larry@hastings.org>2017-09-26 21:24:16 (GMT)
commit0fcc03367b31f44c1e1b8d3d2dd940ef1e744326 (patch)
treee889a3b7de22ace9191e6b9ffd45093e897a3384 /Doc/includes
parent44c1b62939a6192776dc9d093546154044cb2ecb (diff)
downloadcpython-0fcc03367b31f44c1e1b8d3d2dd940ef1e744326.zip
cpython-0fcc03367b31f44c1e1b8d3d2dd940ef1e744326.tar.gz
cpython-0fcc03367b31f44c1e1b8d3d2dd940ef1e744326.tar.bz2
bpo-31095: fix potential crash during GC (GH-2974) (#3196)
(cherry picked from commit a6296d34a478b4f697ea9db798146195075d496c)
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);
}