aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-03-30 10:42:09 +0000
committerTim Peters <tim.peters@gmail.com>2002-03-30 10:42:09 +0000
commit7b85b4aa7fa4e1535dc3eda7d2387a6ea7c29012 (patch)
treeecfec6817b44f12c985fbe3c686e5fd02b550ded /Objects/obmalloc.c
parentChanged the #-of-arenas counters to uints -- no need to be insane about (diff)
downloadcpython-7b85b4aa7fa4e1535dc3eda7d2387a6ea7c29012.tar.gz
cpython-7b85b4aa7fa4e1535dc3eda7d2387a6ea7c29012.tar.bz2
cpython-7b85b4aa7fa4e1535dc3eda7d2387a6ea7c29012.zip
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.
Diffstat (limited to 'Objects/obmalloc.c')
-rw-r--r--Objects/obmalloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index c766ccd7d47..23bf0a97cd4 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -424,6 +424,7 @@ new_arena(void)
error:
PyMem_FREE(bp);
+ nfreepools = 0;
return NULL;
}