-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tp_init (equivalent to __init__) is allowed to be called more than once, or even not at all. Now that it's responsible for initializing self->lock, that would lead to a memory leak and/or memory corruption, and we need to define tp_new instead. This change fixes a bug where we were incorrectly freeing self->lock even if tp_init returned early without initializing it. This was causing segfaults in CI on macOS.
- Loading branch information
1 parent
41b81ee
commit bd10cd4
Showing
1 changed file
with
37 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters