]> 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 14:44:21 +0000 (07:44 -0700)
committerGitHub <noreply@github.com>
Thu, 28 Mar 2019 14:44:21 +0000 (07:44 -0700)
commitdffe90ee0eaf77785ad3d4ad7fb3249430ed1cb9
tree4b71a929afc7dcc6b0419154fb91e00b14dfd4f8
parentbb89aa24cf71f9874d1d26f3a2440fefa0b6bbcc
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