Skip to content

Commit 6287322

Browse files
committed
nit
1 parent e7f6d01 commit 6287322

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/obmalloc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,14 +1237,14 @@ _PyObject_XSetRefDelayed(PyObject **ptr, PyObject *value)
12371237
{
12381238
PyObject *old = *ptr;
12391239
FT_ATOMIC_STORE_PTR_RELEASE(*ptr, value);
1240-
if (old == NULL) {
1240+
if (old == _Py_NULL) {
12411241
return;
12421242
}
12431243
if (!_Py_IsImmortal(old)) {
12441244
_PyObject_XDecRefDelayed(old);
12451245
}
12461246
else {
1247-
Py_XDECREF(old);
1247+
Py_DECREF(old);
12481248
}
12491249
}
12501250
#endif

0 commit comments

Comments
 (0)