mirror of
https://github.com/python/cpython.git
synced 2025-10-27 03:34:32 +00:00
Correct a simple NULL-check in optimizer.c's uop_item() (GH-140069)
This commit is contained in:
parent
279db6bede
commit
3490a99046
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue