Skip to content

Commit a9297a0

Browse files
committed
Null test before use
1 parent 73832b2 commit a9297a0

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
@@ -1473,10 +1473,10 @@ _PyExecutor_GetColdExecutor(void)
14731473
return interp->cold_executor;
14741474
}
14751475
_PyExecutorObject *cold = allocate_executor(0, 1);
1476-
((_PyUOpInstruction *)cold->trace)->opcode = _COLD_EXIT;
14771476
if (cold == NULL) {
14781477
Py_FatalError("Cannot allocate core JIT code");
14791478
}
1479+
((_PyUOpInstruction *)cold->trace)->opcode = _COLD_EXIT;
14801480
_Py_SetImmortal((PyObject *)cold);
14811481
#ifdef _Py_JIT
14821482
cold->jit_code = NULL;

0 commit comments

Comments
 (0)