gh-109216: Fix possible memory leak in BUILD_MAP (#109257)

This commit is contained in:
Nikita Sobolev 2023-09-12 12:37:22 +03:00 committed by GitHub
parent 1110c5bc82
commit 247ee1bf84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 9 deletions

View file

@ -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]);
}