Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
bpo-38168: Fix possible refleaks in setint() of mmapmodule.c#16136
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
matrixise commentedSep 14, 2019
Could you reproduce with a test? and via this command? replace test_XYZ by a test where you test the memory leak. |
shihai1991 commentedSep 14, 2019
I have the same question too, but i found some PR or bpo no regression test against it :( |
ghost commentedSep 15, 2019 • edited by ghost
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by ghost
Uh oh!
There was an error while loading.Please reload this page.
In current code, if Another way is to use |
shihai1991 commentedSep 15, 2019
Agree.
I review the PyModule_AddIntMacro code, looks your are right. But as your said, it MAYBE a bit slower. |
ghost commentedSep 16, 2019
I would suggest use "possible" in the title, "Fix possible refleaks..." |
shihai1991 commentedSep 16, 2019
done :) |
zhangyangyu left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I think for this tiny and clear fix, which also hard to reproduce, it's okay to omit test.
miss-islington commentedSep 16, 2019
Thanks@shihai1991 for the PR, and@zhangyangyu for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
bedevere-bot commentedSep 16, 2019
GH-16174 is a backport of this pull request to the3.8 branch. |
bedevere-bot commentedSep 16, 2019
GH-16175 is a backport of this pull request to the3.7 branch. |
(cherry picked from commit56a4514)Co-authored-by: Hai Shi <shihai1992@gmail.com>
…H-16136) (GH-16174)(cherry picked from commit56a4514)Co-authored-by: Hai Shi <shihai1992@gmail.com>https://bugs.python.org/issue38168Automerge-Triggered-By:@zhangyangyu
…H-16136) (GH-16175)(cherry picked from commit56a4514)Co-authored-by: Hai Shi <shihai1992@gmail.com>Automerge-Triggered-By:@zhangyangyu
miss-islington commentedSep 16, 2019
Thanks@shihai1991 for the PR, and@zhangyangyu for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7. |
miss-islington commentedSep 16, 2019
Sorry,@shihai1991 and@zhangyangyu, I could not cleanly backport this to |
…H-16136)(cherry picked from commit 56a4514)Co-authored-by: Hai Shi shihai1992@gmail.comhttps://bugs.python.org/issue38168
bedevere-bot commentedSep 16, 2019
GH-16176 is a backport of this pull request to the2.7 branch. |
bedevere-bot commentedSep 16, 2019
|
…H-16136) (GH-16176)(cherry picked from commit 56a4514)Co-authored-by: Hai Shi shihai1992@gmail.comhttps://bugs.python.org/issue38168
Uh oh!
There was an error while loading.Please reload this page.
https://bugs.python.org/issue38168