Skip to content

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

Merged
pablogsal merged 5 commits into
python:mainfrom
Eclips4:issue-104698
May 21, 2023
Merged

gh-104698: Fix reference leak in mmapmodule.c#104700
pablogsal merged 5 commits into
python:mainfrom
Eclips4:issue-104698

Conversation

@Eclips4

@Eclips4Eclips4 commented May 20, 2023

Copy link
Copy Markdown
Member

Since macro CHECK_VALID need to redesigned to solve this error, I decided to write new macro CHECK_VALID_AND_RELEASE, which behave the same as CHECK_VALID, but also release a buffer.

@Eclips4

Eclips4 commented May 20, 2023

Copy link
Copy Markdown
MemberAuthor

сс @sunmy2019@chgnrdv

Comment threadModules/mmapmodule.c Outdated
@JelleZijlstraJelleZijlstra added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label May 20, 2023
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @JelleZijlstra for commit a4341c7 🤖

If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label May 20, 2023

@JelleZijlstraJelleZijlstra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks! Two small suggestions.

Comment threadModules/mmapmodule.c Outdated
Comment threadModules/mmapmodule.c Outdated
@pablogsal

Copy link
Copy Markdown
Member

Mergin to fix the refleak buildbots and reduce the noise in main. Thanks for the PR @Eclips4 !

@pablogsalpablogsal added the needs backport to 3.11 only security fixes label May 21, 2023
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @Eclips4 for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-104710 is a backport of this pull request to the 3.11 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.11 only security fixes label May 21, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 21, 2023
(cherry picked from commit 99b6418)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
JelleZijlstra added a commit that referenced this pull request May 21, 2023
…4710)
(cherry picked from commit 99b6418)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@Eclips4
Eclips4 deleted the issue-104698 branch May 21, 2023 06:16
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@Eclips4@bedevere-bot@pablogsal@miss-islington@JelleZijlstra@sunmy2019