mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Need to initialize self->safe_constructors early on to prevent crash
in early dealloc. Patch by Andrew Dalke.
This commit is contained in:
parent
732aa2f987
commit
21ef088265
1 changed files with 1 additions and 0 deletions
|
@ -3865,6 +3865,7 @@ newUnpicklerobject(PyObject *f) {
|
|||
self->buf_size = 0;
|
||||
self->read = NULL;
|
||||
self->readline = NULL;
|
||||
self->safe_constructors = NULL;
|
||||
|
||||
UNLESS (self->memo = PyDict_New()) {
|
||||
Py_XDECREF((PyObject *)self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue