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

Inconsistent between PyMem_Del's definition and its example #102432

Open
memocong opened this issue Mar 5, 2023 · 0 comments
Open

Inconsistent between PyMem_Del's definition and its example #102432

memocong opened this issue Mar 5, 2023 · 0 comments
Labels
docs Documentation in the Doc dir

Comments

@memocong
Copy link

memocong commented Mar 5, 2023

PyMem_Del

It's described that PyMem_Del is the same as PyMem_Free and the code also shows that they are the same, however, in the example below, PyMem_Del can't be used interchangeably with PyMem_Free.

char *buf3 = (char *) PyMem_Malloc(BUFSIZ);
PyMem_Del(buf3);  /* Wrong -- should be PyMem_Free() */

IMHO, PyMem_Del's definition and its example are inconsistent here. Also, please correct me if I missed anything.

@memocong memocong added the docs Documentation in the Doc dir label Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant