commit | 7b85b4aa7fa4e1535dc3eda7d2387a6ea7c29012 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Sat Mar 30 10:42:09 2002 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Sat Mar 30 10:42:09 2002 +0000 |
tree | ecfec6817b44f12c985fbe3c686e5fd02b550ded | |
parent | 1d99af8d6960a3b6adc5ed25a8b27e59e21970d3 [diff] [blame] |
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.
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 @@ error: PyMem_FREE(bp); + nfreepools = 0; return NULL; }