Message338375
| Author | cstratak |
|---|---|
| Recipients | cstratak |
| Date | 2019-03-19.16:12:41 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1553011961.19.0.135862122832.issue36367@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
In tokenizer.c we have those lines of code [0]:
if (final_length < needed_length && final_length)
/* should never fail */
buf = PyMem_REALLOC(buf, final_length);
return buf;
If however that realloc fails, the memory allocated initially for buf, will not be freed.
[0] https://github.com/python/cpython/blob/master/Parser/tokenizer.c#L652 |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-03-19 16:12:41 | cstratak | set | recipients: + cstratak |
| 2019-03-19 16:12:41 | cstratak | set | messageid: <1553011961.19.0.135862122832.issue36367@roundup.psfhosted.org> |
| 2019-03-19 16:12:41 | cstratak | link | issue36367 messages |
| 2019-03-19 16:12:41 | cstratak | create | |