Commit 8a6dba35 authored by Guido van Rossum's avatar Guido van Rossum

Clear class_map in constructor so that when it later detects an error

and the destructor is called early, it doesn't DECREF garbage.
parent 88b02cf3
......@@ -3906,7 +3906,8 @@ newUnpicklerobject(PyObject *f) {
self->marks_size = 0;
self->buf_size = 0;
self->read = NULL;
self->readline = NULL;
self->readline = NULL;
self->class_map = 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