Skip to content

bpo-42519: Replace PyMem_MALLOC() with PyMem_Malloc() - #23586

Merged
vstinner merged 3 commits into
python:masterfrom
vstinner:upgrade_capi
Dec 1, 2020
Merged

vstinner merged 3 commits into
python:masterfrom
vstinner:upgrade_capi

Conversation

@vstinner

@vstinner vstinner commented Dec 1, 2020 •

Copy link
Copy Markdown
Member

No longer use old aliases to functions:

  • Replace PyMem_MALLOC() with PyMem_Malloc()
  • Replace PyMem_FREE() with PyMem_Free()
  • Replace PyMem_Del() with PyMem_Free()
  • Replace PyMem_DEL() with PyMem_Free()

Modify also the PyMem_DEL() macro to use directly PyMem_Free().

https://bugs.python.org/issue42519

No longer use old aliases to functions:

* Replace PyMem_MALLOC() with PyMem_Malloc()
* Replace PyMem_FREE() with PyMem_Free()
* Replace PyMem_Del() with PyMem_Free()
* Replace PyMem_DEL() with PyMem_Free()

Modify also the PyMem_DEL() macro to use directly PyMem_Free().
@vstinner vstinner changed the title Replace PyMem_MALLOC() with PyMem_Malloc() Dec 1, 2020
@vstinner
vstinner merged commit 00d7abd into python:master Dec 1, 2020
@vstinner
vstinner deleted the upgrade_capi branch December 1, 2020 09:06
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
No longer use deprecated aliases to functions:

* Replace PyMem_MALLOC() with PyMem_Malloc()
* Replace PyMem_REALLOC() with PyMem_Realloc()
* Replace PyMem_FREE() with PyMem_Free()
* Replace PyMem_Del() with PyMem_Free()
* Replace PyMem_DEL() with PyMem_Free()

Modify also the PyMem_DEL() macro to use directly PyMem_Free().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants