diff options
author | Guido van Rossum <guido@python.org> | 1998-12-11 03:20:00 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-12-11 03:20:00 (GMT) |
commit | 21ef088265e20cdc2c7cff50eab432f8c620da01 (patch) | |
tree | 77925b89b7e4952f4d5012750aaf5df318759038 /Modules/cPickle.c | |
parent | 732aa2f9874c8a37b6cac04718946d65e5b92bd2 (diff) | |
download | cpython-21ef088265e20cdc2c7cff50eab432f8c620da01.zip cpython-21ef088265e20cdc2c7cff50eab432f8c620da01.tar.gz cpython-21ef088265e20cdc2c7cff50eab432f8c620da01.tar.bz2 |
Need to initialize self->safe_constructors early on to prevent crash
in early dealloc. Patch by Andrew Dalke.
Diffstat (limited to 'Modules/cPickle.c')
-rw-r--r-- | Modules/cPickle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c index 90e5610..a73a787 100644 --- a/Modules/cPickle.c +++ b/Modules/cPickle.c @@ -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); |