]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc() (12601)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 28 Mar 2019 15:08:35 +0000 (08:08 -0700)
committerGitHub <noreply@github.com>
Thu, 28 Mar 2019 15:08:35 +0000 (08:08 -0700)
commit6fd3c852b15820480ad2ea83e7857615c4976304
treea35354dbc7dd7ae0ac34ac439d10de3b0b060811
parent374663567935f0c8350982398b5cd28520c75713
bpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc() (12601)

Remove the PyMem_FREE() call added in cb90c89.  The buffer will be
freed when PyTokenizer_Free() is called on the tokenizer state.
(cherry picked from commit cda139d1ded6708665b53e4ed32ccc1d2627e1da)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Misc/NEWS.d/next/Core and Builtins/2019-03-27-22-35-16.bpo-36459.UAvkKp.rst [new file with mode: 0644]
Parser/tokenizer.c