Skip to content

Commit dd19a02

Browse files
committed
Add non-null assertion
1 parent 48c974c commit dd19a02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/object.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3161,5 +3161,6 @@ PyUnstable_IsImmortal(PyObject *op)
31613161
{
31623162
/* Checking a reference count requires a thread state */
31633163
_Py_AssertHoldsTstate();
3164+
assert(op != NULL);
31643165
return _Py_IsImmortal(op);
31653166
}

0 commit comments

Comments
 (0)