[Python-checkins] python/dist/src/Modules cPickle.c,2.73.2.1.2.6,2.73.2.1.2.7
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Fri, 11 Jul 2003 13:37:16 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv15825
Modified Files:
Tag: release22-maint
cPickle.c
Log Message:
Backport Jeremy's patch from the trunk (revision 2.147):
The Unpickler forget about its find_class attribute.
Also make sure we visit and clear self->safe_constructors in the GC
support.
Index: cPickle.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cPickle.c,v
retrieving revision 2.73.2.1.2.6
retrieving revision 2.73.2.1.2.7
diff -C2 -d -r2.73.2.1.2.6 -r2.73.2.1.2.7
*** cPickle.c 21 May 2003 20:43:09 -0000 2.73.2.1.2.6
--- cPickle.c 11 Jul 2003 20:37:13 -0000 2.73.2.1.2.7
***************
*** 4309,4312 ****
--- 4309,4313 ----
Py_XDECREF(self->arg);
Py_XDECREF(self->last_string);
+ Py_XDECREF(self->find_class);
Py_XDECREF(self->safe_constructors);
***************
*** 4341,4344 ****
--- 4342,4347 ----
VISIT(self->arg);
VISIT(self->last_string);
+ VISIT(self->find_class);
+ VISIT(self->safe_constructors);
#undef VISIT
return 0;
***************
*** 4357,4360 ****
--- 4360,4365 ----
CLEAR(self->arg);
CLEAR(self->last_string);
+ CLEAR(self->find_class);
+ CLEAR(self->safe_constructors);
#undef CLEAR
return 0;