diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-09-12 09:37:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 09:37:22 (GMT) |
commit | 247ee1bf841524667f883ebba5e343101f609026 (patch) | |
tree | 087271b34ed19994cc2098964f0f99533e1ed016 /Python | |
parent | 1110c5bc828218086f6397ec05a9312fb73ea30a (diff) | |
download | cpython-247ee1bf841524667f883ebba5e343101f609026.zip cpython-247ee1bf841524667f883ebba5e343101f609026.tar.gz cpython-247ee1bf841524667f883ebba5e343101f609026.tar.bz2 |
gh-109216: Fix possible memory leak in `BUILD_MAP` (#109257)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bytecodes.c | 3 | ||||
-rw-r--r-- | Python/executor_cases.c.h | 3 | ||||
-rw-r--r-- | Python/generated_cases.c.h | 3 |
3 files changed, 0 insertions, 9 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 7c49f9a..08d91b5 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -1600,9 +1600,6 @@ dummy_func( values, 2, values+1, 2, oparg); - if (map == NULL) - goto error; - DECREF_INPUTS(); ERROR_IF(map == NULL, error); } diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index a4d8130..8f3febe 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]); } diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index 27cda1f..b86e35f 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -2077,9 +2077,6 @@ values, 2, values+1, 2, oparg); - if (map == NULL) - goto error; - for (int _i = oparg*2; --_i >= 0;) { Py_DECREF(values[_i]); } |