]> 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:47:23 +0000 (22:47 -0800)
committerGitHub <noreply@github.com>
Mon, 2 Mar 2020 06:47:23 +0000 (22:47 -0800)
(cherry picked from commit 1f577ce363121d590b51abf5c41d1bcf3d751436)

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

index 55e2734ca2f31de2ad6f525f9ddf12c11f343920..55affb2c7c47968fd6624a3eb17ee937ca52f776 100644 (file)
@@ -7961,6 +7961,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;
 }