mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
The Unpickler forget about its find_class attribute.
This commit is contained in:
parent
fa6cce1fdd
commit
fff093fa7f
1 changed files with 3 additions and 0 deletions
|
|
@ -5232,6 +5232,7 @@ Unpickler_dealloc(Unpicklerobject *self)
|
||||||
Py_XDECREF(self->pers_func);
|
Py_XDECREF(self->pers_func);
|
||||||
Py_XDECREF(self->arg);
|
Py_XDECREF(self->arg);
|
||||||
Py_XDECREF(self->last_string);
|
Py_XDECREF(self->last_string);
|
||||||
|
Py_XDECREF(self->find_class);
|
||||||
|
|
||||||
if (self->marks) {
|
if (self->marks) {
|
||||||
free(self->marks);
|
free(self->marks);
|
||||||
|
|
@ -5263,6 +5264,7 @@ Unpickler_traverse(Unpicklerobject *self, visitproc visit, void *arg)
|
||||||
VISIT(self->pers_func);
|
VISIT(self->pers_func);
|
||||||
VISIT(self->arg);
|
VISIT(self->arg);
|
||||||
VISIT(self->last_string);
|
VISIT(self->last_string);
|
||||||
|
VISIT(self->find_class);
|
||||||
#undef VISIT
|
#undef VISIT
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
@ -5279,6 +5281,7 @@ Unpickler_clear(Unpicklerobject *self)
|
||||||
CLEAR(self->pers_func);
|
CLEAR(self->pers_func);
|
||||||
CLEAR(self->arg);
|
CLEAR(self->arg);
|
||||||
CLEAR(self->last_string);
|
CLEAR(self->last_string);
|
||||||
|
CLEAR(self->find_class);
|
||||||
#undef CLEAR
|
#undef CLEAR
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue