Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 247ee1b

Browse files
authored
gh-109216: Fix possible memory leak in BUILD_MAP (#109257)
1 parent 1110c5b commit 247ee1b

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix possible memory leak in :opcode:`BUILD_MAP`.

Python/bytecodes.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,9 +1600,6 @@ dummy_func(
16001600
values, 2,
16011601
values+1, 2,
16021602
oparg);
1603-
if (map == NULL)
1604-
goto error;
1605-
16061603
DECREF_INPUTS();
16071604
ERROR_IF(map == NULL, error);
16081605
}

Python/executor_cases.c.h

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

0 commit comments

Comments
 (0)