Skip to content

Commit 2016f58

Browse files
committed
Update presite_resolve_name(): obj cannot be NULL
1 parent 7e3ee76 commit 2016f58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/pylifecycle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ presite_resolve_name(PyObject *obj, PyObject *attr)
12601260
return res;
12611261

12621262
error:
1263-
Py_XDECREF(obj);
1263+
Py_DECREF(obj);
12641264
Py_DECREF(attr);
12651265
return NULL;
12661266
}

0 commit comments

Comments
 (0)