Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from Dec 1, 2020

Conversation

vstinner
Copy link
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
2 of 3 checks passed
@vstinner vstinner deleted the upgrade_capi branch Dec 1, 2020
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.

None yet

3 participants