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

pablogsal merged 5 commits into
python:mainfrom
Eclips4:issue-104698

Conversation

@Eclips4

@Eclips4 Eclips4 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
Member Author
Comment thread Modules/mmapmodule.c Resolved
@sunmy2019
sunmy2019 requested a review from JelleZijlstra May 20, 2023 17:57
@JelleZijlstra JelleZijlstra 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-bot bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label May 20, 2023

@JelleZijlstra JelleZijlstra 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 thread Modules/mmapmodule.c Resolved
Comment thread Modules/mmapmodule.c Resolved
@pablogsal

Copy link
Copy Markdown
Member

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

@pablogsal pablogsal 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-bot bedevere-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 free to join this conversation on GitHub. Already have an account? Sign in to comment

6 participants