Skip to content

Commit 927c4b9

Browse files
committed
transfer ownership only after error case branch
1 parent bd9d77b commit 927c4b9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Modules/_testinternalcapi/test_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/bytecodes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,11 +1249,11 @@ dummy_func(
12491249
op(_CALL_INTRINSIC_1, (value -- res, v)) {
12501250
assert(oparg <= MAX_INTRINSIC_1);
12511251
PyObject *res_o = _PyIntrinsics_UnaryFunctions[oparg].func(tstate, PyStackRef_AsPyObjectBorrow(value));
1252-
v = value;
1253-
DEAD(value);
12541252
if (res_o == NULL) {
12551253
ERROR_NO_POP();
12561254
}
1255+
v = value;
1256+
DEAD(value);
12571257
res = PyStackRef_FromPyObjectSteal(res_o);
12581258
}
12591259

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)