Skip to content

Commit cc8d715

Browse files
committed
Py_CLEAR(it->ao)
1 parent 4a5c568 commit cc8d715

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/arraymodule.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3267,8 +3267,7 @@ arrayiter_next(PyObject *op)
32673267
else {
32683268
FT_ATOMIC_STORE_SSIZE_RELAXED(it->index, -1);
32693269
#ifndef Py_GIL_DISABLED
3270-
it->ao = NULL;
3271-
Py_DECREF(ao);
3270+
Py_CLEAR(it->ao);
32723271
#endif
32733272
}
32743273
return ret;

0 commit comments

Comments
 (0)