From 140d80babc5f91db6da46a019fd0688e47600818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maurycy=20Paw=C5=82owski-Wiero=C5=84ski?= <5383+maurycy@users.noreply.github.com> Date: Tue, 14 Oct 2025 00:40:27 +0200 Subject: [PATCH] incorrect check --- Python/optimizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/optimizer.c b/Python/optimizer.c index 83b0b1a5deba5c..6ad9124744859a 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;