summaryrefslogtreecommitdiffstats
path: root/Objects/obmalloc.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-03-30 10:42:09 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-03-30 10:42:09 (GMT)
commit7b85b4aa7fa4e1535dc3eda7d2387a6ea7c29012 (patch)
treeecfec6817b44f12c985fbe3c686e5fd02b550ded /Objects/obmalloc.c
parent1d99af8d6960a3b6adc5ed25a8b27e59e21970d3 (diff)
downloadcpython-7b85b4aa7fa4e1535dc3eda7d2387a6ea7c29012.zip
cpython-7b85b4aa7fa4e1535dc3eda7d2387a6ea7c29012.tar.gz
cpython-7b85b4aa7fa4e1535dc3eda7d2387a6ea7c29012.tar.bz2
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 c766ccd..23bf0a9 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -424,6 +424,7 @@ new_arena(void)
error:
PyMem_FREE(bp);
+ nfreepools = 0;
return NULL;
}