This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients louielu, vstinner, zvyn
Date 2017-06-07.17:07:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It seems like compile() only leaks when using PyCF_ONLY_AST:

compile(source, "filename", "exec", ast.PyCF_ONLY_AST)

It's maybe a leak in the PyAST_mod2obj() function when creating dictionaries of created AST objects. But in ast_dealloc() of Python/Python-ast.c, I see that a "DECREF" (Py_CLEAR) for the dict. Maybe it's something else.
Date User Action Args
2017-06-07 17:07:00vstinnersetrecipients: + vstinner, zvyn, louielu
2017-06-07 17:07:00vstinnersetmessageid: <>
2017-06-07 17:07:00vstinnerlinkissue30542 messages
2017-06-07 17:07:00vstinnercreate