Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor [module|capi]_aq_inContextOf
* The usual tab/spaces/indent stuff. * No checks for self->obj are needed, because __new__ ensures that its always set. * Handle errors from capi_aq_inner and capi_aq_parent. Before the NULL pointer was used as a regular result, which would have lead to segfault. * Don't decref the result from capi_aq_parent too early. Before the result of capi_aq_parent() was immediatly Py_DECREF and after that *used* ! This was a potential segfault in case the result of this had a refcount of 1. Now the refcount is decremented at the very end.
- Loading branch information
1 parent
acaee01
commit 12c446c
Showing
1 changed file
with
36 additions
and
31 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