diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-04-23 05:18:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-23 05:18:15 -0700 |
commit | c0f6f5370325459cadd90010530b1d300dce514e (patch) | |
tree | 369d2c28813af596eff4d4a1283df42e185cc990 /Modules | |
parent | 8a9a6b443c57e47e9d10ed7775479aada4dac719 (diff) | |
download | cpython-git-c0f6f5370325459cadd90010530b1d300dce514e.tar.gz |
bpo-18372: Add missing PyObject_GC_Track() calls in the pickle module (GH-8505)
(cherry picked from commit 359bd4f61b9e1493081f4f67882554247b53926a)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
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 15e15cdf45..c8b3ef70f5 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -1114,6 +1114,8 @@ _Pickler_New(void) Py_DECREF(self); return NULL; } + + PyObject_GC_Track(self); return self; } @@ -1491,6 +1493,7 @@ _Unpickler_New(void) return NULL; } + PyObject_GC_Track(self); return self; } |