Skip to content

Commit b6755d8

Browse files
authored
[3.12] gh-109216: Fix possible memory leak in BUILD_MAP (#109324)
1 parent 744f752 commit b6755d8

File tree

3 files changed

+251
-255
lines changed

3 files changed

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

Python/bytecodes.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,9 +1543,6 @@ dummy_func(
15431543
values, 2,
15441544
values+1, 2,
15451545
oparg);
1546-
if (map == NULL)
1547-
goto error;
1548-
15491546
DECREF_INPUTS();
15501547
ERROR_IF(map == NULL, error);
15511548
}

0 commit comments

Comments
 (0)