summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-11 03:20:00 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-11 03:20:00 (GMT)
commit21ef088265e20cdc2c7cff50eab432f8c620da01 (patch)
tree77925b89b7e4952f4d5012750aaf5df318759038 /Modules
parent732aa2f9874c8a37b6cac04718946d65e5b92bd2 (diff)
downloadcpython-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')
-rw-r--r--Modules/cPickle.c1
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);