Mailing List Archive

CVS: python/dist/src/Objects obmalloc.c,2.17,2.18
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv11987/python/Objects

Modified Files:
obmalloc.c
Log Message:
new_arena(): In error cases, reset the number of available pools to 0.
Else the pymalloc malloc will go insane the next time it's called.


Index: obmalloc.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/obmalloc.c,v
retrieving revision 2.17
retrieving revision 2.18
diff -C2 -d -r2.17 -r2.18
*** obmalloc.c 30 Mar 2002 10:35:09 -0000 2.17
--- obmalloc.c 30 Mar 2002 10:42:09 -0000 2.18
***************
*** 425,428 ****
--- 425,429 ----
error:
PyMem_FREE(bp);
+ nfreepools = 0;
return NULL;
}