Skip to content

Commit 5df23bf

Browse files
remove a steal
1 parent e82c2dc commit 5df23bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3105,7 +3105,7 @@ dummy_func(
31053105

31063106
inst(LOAD_SPECIAL, (owner -- attr, self_or_null)) {
31073107
assert(oparg <= SPECIAL_MAX);
3108-
PyObject *owner_o = PyStackRef_AsPyObjectSteal(owner);
3108+
PyObject *owner_o = PyStackRef_AsPyObjectBorrow(owner);
31093109
PyObject *name = _Py_SpecialMethods[oparg].name;
31103110
PyObject *self_or_null_o;
31113111
attr = PyStackRef_FromPyObjectSteal(_PyObject_LookupSpecialMethod(owner_o, name, &self_or_null_o));

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)