bpo-36367: Free buffer if realloc fails in tokenize.c by pablogsal ยท Pull Request #12442 ยท python/cpython
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had the same solution, seems to be fine for me.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move result declaration where it's used? Python 3.8 now allows C99 ;-) (see PEP 7)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! :)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pablogsal Yes it is, I think you patch is correct now.
Thanks @pablogsal for the PR ๐ฎ๐.. I'm working now to backport this PR to: 2.7.
๐๐โ๐ค
Thanks @pablogsal for the PR ๐ฎ๐.. I'm working now to backport this PR to: 3.7.
๐๐โ๐ค
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters