aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-09-12 12:37:22 +0300
committerGitHub <noreply@github.com>2023-09-12 15:07:22 +0530
commit247ee1bf841524667f883ebba5e343101f609026 (patch)
tree087271b34ed19994cc2098964f0f99533e1ed016 /Python/executor_cases.c.h
parent1110c5bc828218086f6397ec05a9312fb73ea30a (diff)
downloadcpython-247ee1bf841524667f883ebba5e343101f609026.tar.gz
cpython-247ee1bf841524667f883ebba5e343101f609026.zip
gh-109216: Fix possible memory leak in `BUILD_MAP` (#109257)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r--Python/executor_cases.c.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index a4d813056aa..8f3febe7d1a 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -1433,9 +1433,6 @@
values, 2,
values+1, 2,
oparg);
- if (map == NULL)
- goto error;
-
for (int _i = oparg*2; --_i >= 0;) {
Py_DECREF(values[_i]);
}