mirror of
https://github.com/python/cpython.git
synced 2026-01-26 21:03:34 +00:00
Correct a simple NULL-check in optimizer.c's uop_item() (GH-140069)
This commit is contained in:
parent
279db6bede
commit
3490a99046
@ -362,7 +362,7 @@ uop_item(PyObject *op, Py_ssize_t index)
|
||||
return NULL;
|
||||
}
|
||||
PyObject *target = PyLong_FromUnsignedLong(self->trace[index].target);
|
||||
if (oparg == NULL) {
|
||||
if (target == NULL) {
|
||||
Py_DECREF(oparg);
|
||||
Py_DECREF(oname);
|
||||
return NULL;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user