Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b85b4a

Browse files
committed
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.
1 parent 1d99af8 commit 7b85b4a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Objects/obmalloc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ new_arena(void)
424424

425425
error:
426426
PyMem_FREE(bp);
427+
nfreepools = 0;
427428
return NULL;
428429
}
429430

0 commit comments

Comments
 (0)