mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-109216: Fix possible memory leak in BUILD_MAP
(#109257)
This commit is contained in:
parent
1110c5bc82
commit
247ee1bf84
4 changed files with 1 additions and 9 deletions
3
Python/generated_cases.c.h
generated
3
Python/generated_cases.c.h
generated
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue