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 Dormouse759, ncoghlan, pablogsal, petr.viktorin, shihai1991, vstinner
Date 2020-03-02.10:56:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583146560.18.0.32607866218.issue39824@roundup.psfhosted.org>
In-reply-to
Content
> I propose to change module_traverse(), module_clear() and module_dealloc() to not call m_traverse(), m_clear() and m_free() if md_state is NULL and m_size > 0.

Note: This change also means that m_traverse, m_clear and m_free are no longer called if md_state is set to NULL. But it never occurs in practice.

module_dealloc() calls PyMem_FREE(m->md_state) but it doesn't set md_state to NULL. It's not needed, since the module memory is deallocated anyway.
History
Date User Action Args
2020-03-02 10:56:00vstinnersetrecipients: + vstinner, ncoghlan, petr.viktorin, Dormouse759, pablogsal, shihai1991
2020-03-02 10:56:00vstinnersetmessageid: <1583146560.18.0.32607866218.issue39824@roundup.psfhosted.org>
2020-03-02 10:56:00vstinnerlinkissue39824 messages
2020-03-02 10:56:00vstinnercreate