Top Threat: Corrupting Python Object Reference Counts

Accessing Python objects in `nogil` blocks directly bypasses the GIL's atomic reference counting, leading to potential memory leaks from un-decremented counts or premature deallocation and crashes from over-decremented counts.

Sources

Open the full topic