From: Maurycy Pawłowski-Wieroński <5383+maurycy@users.noreply.github.com> Date: Tue, 14 Oct 2025 15:18:20 +0000 (+0200) Subject: Correct a simple NULL-check in `optimizer.c`'s `uop_item()` (GH-140069) X-Git-Tag: v3.15.0a2~445 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3490a99046078e4f9df7ac7570f62a0181bb3b89;p=thirdparty%2FPython%2Fcpython.git Correct a simple NULL-check in `optimizer.c`'s `uop_item()` (GH-140069) --- 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;