Skip to content

Commit 3a2d34b

Browse files
committed
Track executor object with GC
1 parent d4e5802 commit 3a2d34b

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
@@ -1246,6 +1246,7 @@ make_executor_from_uops(_PyUOpInstruction *buffer, int length, const _PyBloomFil
12461246
}
12471247
sanity_check(executor);
12481248
#endif
1249+
_PyObject_GC_TRACK(executor);
12491250
#ifdef _Py_JIT
12501251
executor->jit_code = NULL;
12511252
executor->jit_size = 0;
@@ -1257,7 +1258,6 @@ make_executor_from_uops(_PyUOpInstruction *buffer, int length, const _PyBloomFil
12571258
return NULL;
12581259
}
12591260
#endif
1260-
_PyObject_GC_TRACK(executor);
12611261
return executor;
12621262
}
12631263

0 commit comments

Comments
 (0)