Skip to content

Commit 8c3a4dc

Browse files
committed
Address code review
1 parent 6e2f5fe commit 8c3a4dc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,8 +798,8 @@ dummy_func(
798798
STAT_INC(BINARY_SUBSCR, hit);
799799
PyObject *res_o = PyList_GET_ITEM(list, index);
800800
assert(res_o != NULL);
801-
UNLOCK_OBJECT(list);
802801
Py_INCREF(res_o);
802+
UNLOCK_OBJECT(list);
803803
PyStackRef_CLOSE_SPECIALIZED(sub_st, (destructor)PyObject_Free);
804804
DEAD(sub_st);
805805
PyStackRef_CLOSE(list_st);

Python/executor_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)