8000 gh-104698: Fix reference leak in mmapmodule.c by Eclips4 · Pull Request #104700 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-104698: Fix reference leak in mmapmodule.c #104700

8000
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Modules/mmapmodule.c
  • Loading branch information
JelleZijlstra authored May 20, 2023
commit 1162ef011e0e14178f306f377fa428351821831c
4 changes: 2 additions & 2 deletions Modules/mmapmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ do { \
do { \
if (self->map_handle == NULL) { \
PyErr_SetString(PyExc_ValueError, "mmap closed or invalid"); \
PyBuffer_Release(&buffer); \
return err; \
PyBuffer_Release(&(buffer)); \
return (err); \
} \
} while (0)
#endif /* MS_WINDOWS */
Expand Down
0