@@ -4652,6 +4652,7 @@ Pickler_clear(PicklerObject *self)
4652
4652
Py_CLEAR (self -> output_buffer );
4653
4653
Py_CLEAR (self -> write );
4654
4654
Py_CLEAR (self -> persistent_id );
4655
+ Py_CLEAR (self -> persistent_id_attr );
4655
4656
Py_CLEAR (self -> dispatch_table );
4656
4657
Py_CLEAR (self -> fast_memo );
4657
4658
Py_CLEAR (self -> reducer_override );
@@ -4681,6 +4682,7 @@ Pickler_traverse(PicklerObject *self, visitproc visit, void *arg)
4681
4682
Py_VISIT (Py_TYPE (self ));
4682
4683
Py_VISIT (self -> write );
4683
4684
Py_VISIT (self -> persistent_id );
4685
+ Py_VISIT (self -> persistent_id_attr );
4684
4686
Py_VISIT (self -> dispatch_table );
4685
4687
Py_VISIT (self -> fast_memo );
4686
4688
Py_VISIT (self -> reducer_override );
@@ -7138,6 +7140,7 @@ Unpickler_clear(UnpicklerObject *self)
7138
7140
Py_CLEAR (self -> peek );
7139
7141
Py_CLEAR (self -> stack );
7140
7142
Py_CLEAR (self -> persistent_load );
7143
+ Py_CLEAR (self -> persistent_load_attr );
7141
7144
Py_CLEAR (self -> buffers );
7142
7145
if (self -> buffer .buf != NULL ) {
7143
7146
PyBuffer_Release (& self -> buffer );
@@ -7177,6 +7180,7 @@ Unpickler_traverse(UnpicklerObject *self, visitproc visit, void *arg)
7177
7180
Py_VISIT (self -> peek );
7178
7181
Py_VISIT (self -> stack );
7179
7182
Py_VISIT (self -> persistent_load );
7183
+ Py_VISIT (self -> persistent_load_attr );
7180
7184
Py_VISIT (self -> buffers );
7181
7185
PyObject * * memo = self -> memo ;
7182
7186
if (memo ) {
0 commit comments