]> granicus.if.org Git - python/commitdiff
new_arena(): In error cases, reset the number of available pools to 0.
authorTim Peters <tim.peters@gmail.com>
Sat, 30 Mar 2002 10:42:09 +0000 (10:42 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 30 Mar 2002 10:42:09 +0000 (10:42 +0000)
Else the pymalloc malloc will go insane the next time it's called.

Objects/obmalloc.c

index c766ccd7d4737d9c1e1e0af1b4fb804a0dab1e96..23bf0a97cd46a89712641d00e36b5816aa390dcb 100644 (file)
@@ -424,6 +424,7 @@ new_arena(void)
 
 error:
        PyMem_FREE(bp);
+       nfreepools = 0;
        return NULL;
 }