diff options
author | Zackery Spytz <zspytz@gmail.com> | 2019-04-23 11:56:08 (GMT) |
---|---|---|
committer | Inada Naoki <songofacandy@gmail.com> | 2019-04-23 11:56:08 (GMT) |
commit | 359bd4f61b9e1493081f4f67882554247b53926a (patch) | |
tree | 855a49b616a74c02af6ed72cbb64e675371d2e1e /Modules | |
parent | 09415ff0ebbbe97c8cd08ac1f94673d7a49c8018 (diff) | |
download | cpython-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')
-rw-r--r-- | Modules/_pickle.c | 3 |
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; } |