From 3490a99046078e4f9df7ac7570f62a0181bb3b89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Maurycy=20Paw=C5=82owski-Wiero=C5=84ski?= <5383+maurycy@users.noreply.github.com> Date: Tue, 14 Oct 2025 17:18:20 +0200 Subject: [PATCH] Correct a simple NULL-check in `optimizer.c`'s `uop_item()` (GH-140069) --- Python/optimizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/optimizer.c b/Python/optimizer.c index 83b0b1a5deba..6ad912474485 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -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; -- 2.47.3