summaryrefslogtreecommitdiffstats
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-10-15 01:38:40 (GMT)
committerGitHub <noreply@github.com>2023-10-15 01:38:40 (GMT)
commitb6755d81d45a1d75e3d2485386dabf7bdde66632 (patch)
treeb5c60e1db33e049a6c70e95875934a86f7c42781 /Python/bytecodes.c
parent744f752f04cd5ad0b18670cd66a82a9b042df0ad (diff)
downloadcpython-b6755d81d45a1d75e3d2485386dabf7bdde66632.zip
cpython-b6755d81d45a1d75e3d2485386dabf7bdde66632.tar.gz
cpython-b6755d81d45a1d75e3d2485386dabf7bdde66632.tar.bz2
[3.12] gh-109216: Fix possible memory leak in `BUILD_MAP` (#109324)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index dfebaaa..e20b9ff 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -1543,9 +1543,6 @@ dummy_func(
values, 2,
values+1, 2,
oparg);
- if (map == NULL)
- goto error;
-
DECREF_INPUTS();
ERROR_IF(map == NULL, error);
}