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.
This commit is contained in:
Tim Peters 2002-03-30 10:42:09 +00:00
parent 1d99af8d69
commit 7b85b4aa7f

View File

@ -424,6 +424,7 @@ new_arena(void)
error:
PyMem_FREE(bp);
nfreepools = 0;
return NULL;
}