Skip to content

Commit 3490a99

Browse files
authored
Correct a simple NULL-check in optimizer.c's uop_item() (GH-140069)
1 parent 279db6b commit 3490a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/optimizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ uop_item(PyObject *op, Py_ssize_t index)
362362
return NULL;
363363
}
364364
PyObject *target = PyLong_FromUnsignedLong(self->trace[index].target);
365-
if (oparg == NULL) {
365+
if (target == NULL) {
366366
Py_DECREF(oparg);
367367
Py_DECREF(oname);
368368
return NULL;

0 commit comments

Comments
 (0)