X Tutup
Skip to content

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

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

bpo-42519: Replace PyMem_MALLOC() with PyMem_Malloc()#23586
vstinner merged 3 commits intopython:masterfrom
vstinner:upgrade_capi

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Dec 1, 2020

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() bpo-42519: 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup