summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-04-23 11:56:08 (GMT)
committerInada Naoki <songofacandy@gmail.com>2019-04-23 11:56:08 (GMT)
commit359bd4f61b9e1493081f4f67882554247b53926a (patch)
tree855a49b616a74c02af6ed72cbb64e675371d2e1e /Modules/_pickle.c
parent09415ff0ebbbe97c8cd08ac1f94673d7a49c8018 (diff)
downloadcpython-359bd4f61b9e1493081f4f67882554247b53926a.zip
cpython-359bd4f61b9e1493081f4f67882554247b53926a.tar.gz
cpython-359bd4f61b9e1493081f4f67882554247b53926a.tar.bz2
bpo-18372: Add missing PyObject_GC_Track() calls in the pickle module (GH-8505)
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r--Modules/_pickle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index f956a38..391ce5e 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -1119,6 +1119,8 @@ _Pickler_New(void)
Py_DECREF(self);
return NULL;
}
+
+ PyObject_GC_Track(self);
return self;
}
@@ -1496,6 +1498,7 @@ _Unpickler_New(void)
return NULL;
}
+ PyObject_GC_Track(self);
return self;
}