Skip to content

Commit

Permalink
filter: ensure GIL during pygit2_filter_cleanup
Browse files Browse the repository at this point in the history
🎹 Ha! Zweifelst du an meiner Treue? ⛵
  • Loading branch information
0x2b3bfa0 authored Dec 20, 2023
1 parent 8da921b commit 8706424
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,9 @@ void pygit2_filter_cleanup(git_filter *self, void *payload)
{
struct pygit2_filter_payload *pl = (struct pygit2_filter_payload *)payload;

PyGILState_STATE gil = PyGILState_Ensure();
pygit2_filter_payload_free(pl);
PyGILState_Release(gil);
}

void pygit2_filter_shutdown(git_filter *self)
Expand Down

0 comments on commit 8706424

Please sign in to comment.