mirror of
https://github.com/python/cpython.git
synced 2024-11-27 11:55:13 +08: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:
parent
1d99af8d69
commit
7b85b4aa7f
@ -424,6 +424,7 @@ new_arena(void)
|
||||
|
||||
error:
|
||||
PyMem_FREE(bp);
|
||||
nfreepools = 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user