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
|
@ -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…
Reference in New Issue