Commit 8ab53ac
committed
Replace calls to 'Py_INCREF' with 'Py_XINCREF'
The 'PyErr_NewException' function can return 'NULL', which means that
'Py_XINCREF' must be used instead of 'Py_INCREF'.
See https://docs.python.org/3/extending/extending.html#null-pointers for
further information.1 parent 9db428f commit 8ab53ac
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
0 commit comments