Kaydet (Commit) 21ef0882 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

in early dealloc.  Patch by Andrew Dalke.
üst 732aa2f9
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment