Skip to content

bpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc()#12601

Merged
serhiy-storchaka merged 1 commit intopython:masterfrom
ZackerySpytz:bpo-36459-double-free-tok_nextc
Mar 28, 2019
Merged

bpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc()#12601
serhiy-storchaka merged 1 commit intopython:masterfrom
ZackerySpytz:bpo-36459-double-free-tok_nextc

Conversation

@ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented Mar 28, 2019

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

https://bugs.python.org/issue36459

…k_nextc()

Remove the PyMem_FREE() call added in cb90c89.  The buffer will be
freed when PyTokenizer_Free() is called on the tokenizer state.
@serhiy-storchaka serhiy-storchaka merged commit cda139d into python:master Mar 28, 2019
@serhiy-storchaka serhiy-storchaka added type-bug An unexpected behavior, bug, or error needs backport to 2.7 labels Mar 28, 2019
@miss-islington
Copy link
Contributor

Thanks @ZackerySpytz for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Thanks @ZackerySpytz for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants