0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00

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;
}