Need to initialize self->safe_constructors early on to prevent crash

in early dealloc.  Patch by Andrew Dalke.
This commit is contained in:
Guido van Rossum 1998-12-11 03:20:00 +00:00
parent 732aa2f987
commit 21ef088265

View File

@ -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);