From 7b85b4aa7fa4e1535dc3eda7d2387a6ea7c29012 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sat, 30 Mar 2002 10:42:09 +0000 Subject: [PATCH] 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. --- Objects/obmalloc.c | 1 + 1 file changed, 1 insertion(+) 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; }