@@ -4725,6 +4725,7 @@ Pickler_clear(PicklerObject *self)
4725
4725
Py_CLEAR (self -> output_buffer );
4726
4726
Py_CLEAR (self -> write );
4727
4727
Py_CLEAR (self -> persistent_id );
4728
+ Py_CLEAR (self -> persistent_id_attr );
4728
4729
Py_CLEAR (self -> dispatch_table );
4729
4730
Py_CLEAR (self -> fast_memo );
4730
4731
Py_CLEAR (self -> reducer_override );
@@ -4754,6 +4755,7 @@ Pickler_traverse(PicklerObject *self, visitproc visit, void *arg)
4754
4755
Py_VISIT (Py_TYPE (self ));
4755
4756
Py_VISIT (self -> write );
4756
4757
Py_VISIT (self -> persistent_id );
4758
+ Py_VISIT (self -> persistent_id_attr );
4757
4759
Py_VISIT (self -> dispatch_table );
4758
4760
Py_VISIT (self -> fast_memo );
4759
4761
Py_VISIT (self -> reducer_override );
@@ -7227,6 +7229,7 @@ Unpickler_clear(UnpicklerObject *self)
7227
7229
Py_CLEAR (self -> peek );
7228
7230
Py_CLEAR (self -> stack );
7229
7231
Py_CLEAR (self -> persistent_load );
7232
+ Py_CLEAR (self -> persistent_load_attr );
7230
7233
Py_CLEAR (self -> buffers );
7231
7234
if (self -> buffer .buf != NULL ) {
7232
7235
PyBuffer_Release (& self -> buffer );
@@ -7266,6 +7269,7 @@ Unpickler_traverse(UnpicklerObject *self, visitproc visit, void *arg)
7266
7269
Py_VISIT (self -> peek );
7267
7270
Py_VISIT (self -> stack );
7268
7271
Py_VISIT (self -> persistent_load );
7272
+ Py_VISIT (self -> persistent_load_attr );
7269
7273
Py_VISIT (self -> buffers );
7270
7274
PyObject * * memo = self -> memo ;
7271
7275
if (memo ) {
0 commit comments