Skip to content

Commit 900472a

Browse files
committed
Close all stackrefs
1 parent 0ab70a9 commit 900472a

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

Python/bytecodes.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4369,12 +4369,11 @@ dummy_func(
43694369
if (retval < 0) {
43704370
ERROR_NO_POP();
43714371
}
4372-
(void)callable; // Silence compiler warnings about unused variables
4373-
(void)null;
4374-
DEAD(callable);
4372+
(void)null; // Silence compiler warnings about unused variables
43754373
DEAD(null);
43764374
PyStackRef_CLOSE(args[0]);
43774375
PyStackRef_CLOSE(args[1]);
4376+
PyStackRef_CLOSE(callable);
43784377
res = retval ? PyStackRef_True : PyStackRef_False;
43794378
assert((!PyStackRef_IsNull(res)) ^ (_PyErr_Occurred(tstate) != NULL));
43804379
}

Python/executor_cases.c.h

Lines changed: 6 additions & 2 deletions
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: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)