From: Tim Peters Date: Sat, 30 Mar 2002 10:42:09 +0000 (+0000) Subject: new_arena(): In error cases, reset the number of available pools to 0. X-Git-Tag: v2.3c1~6234 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b85b4aa7fa4e1535dc3eda7d2387a6ea7c29012;p=thirdparty%2FPython%2Fcpython.git 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 c766ccd7d473..23bf0a97cd46 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c @@ -424,6 +424,7 @@ new_arena(void) error: PyMem_FREE(bp); + nfreepools = 0; return NULL; }