]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39378: partial of PickleState struct should be traversed. (GH-18046)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Mar 2020 06:46:59 +0000 (22:46 -0800)
committerGitHub <noreply@github.com>
Mon, 2 Mar 2020 06:46:59 +0000 (22:46 -0800)
(cherry picked from commit 1f577ce363121d590b51abf5c41d1bcf3d751436)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
Modules/_pickle.c

index dd45772595bc9d6f548b2459dbe798c06e91efd3..ef83da02e2e414b71bdff0caeca4dc75f2c418e1 100644 (file)
@@ -7436,6 +7436,7 @@ pickle_traverse(PyObject *m, visitproc visit, void *arg)
     Py_VISIT(st->import_mapping_3to2);
     Py_VISIT(st->codecs_encode);
     Py_VISIT(st->getattr);
+    Py_VISIT(st->partial);
     return 0;
 }