Skip to content

Commit fff093f

Browse files
committed
The Unpickler forget about its find_class attribute.
1 parent fa6cce1 commit fff093f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Modules/cPickle.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5232,6 +5232,7 @@ Unpickler_dealloc(Unpicklerobject *self)
52325232
Py_XDECREF(self->pers_func);
52335233
Py_XDECREF(self->arg);
52345234
Py_XDECREF(self->last_string);
5235+
Py_XDECREF(self->find_class);
52355236

52365237
if (self->marks) {
52375238
free(self->marks);
@@ -5263,6 +5264,7 @@ Unpickler_traverse(Unpicklerobject *self, visitproc visit, void *arg)
52635264
VISIT(self->pers_func);
52645265
VISIT(self->arg);
52655266
VISIT(self->last_string);
5267+
VISIT(self->find_class);
52665268
#undef VISIT
52675269
return 0;
52685270
}
@@ -5279,6 +5281,7 @@ Unpickler_clear(Unpicklerobject *self)
52795281
CLEAR(self->pers_func);
52805282
CLEAR(self->arg);
52815283
CLEAR(self->last_string);
5284+
CLEAR(self->find_class);
52825285
#undef CLEAR
52835286
return 0;
52845287
}

0 commit comments

Comments
 (0)