Message363153
> 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. |
|
Date |
User |
Action |
Args |
2020-03-02 10:56:00 | vstinner | set | recipients:
+ vstinner, ncoghlan, petr.viktorin, Dormouse759, pablogsal, shihai1991 |
2020-03-02 10:56:00 | vstinner | set | messageid: <1583146560.18.0.32607866218.issue39824@roundup.psfhosted.org> |
2020-03-02 10:56:00 | vstinner | link | issue39824 messages |
2020-03-02 10:56:00 | vstinner | create | |
|