This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: PyUnicode_AsWideCharString and PyMem_Free
Type: resource usage Stage:
Components: Versions: Python 3.2
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: ocean-city, terry.reedy
Priority: normal Keywords: easy

Created on 2010-10-23 12:21 by ocean-city, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg119424 - (view) Author: Hirokazu Yamamoto (ocean-city) * (Python committer) Date: 2010-10-23 12:21
Hello. I found several codes using PyMem_Free to free
allocated memory via PyUnicode_AsWideCharString.
In PyUnicode_AsWideCharString, memory is allocated
with PyMem_MALLOC. Is it OK to use PyMem_Free
not PyMem_FREE? Thank you.
msg119936 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-10-29 20:48
I think questions like this are better answered on python-list or even pydev.

In the absence of an observed problem, I would presume it is ok.

This question should be answered in the C-API doc. If it is not, you could reopen this as a doc issue.
History
Date User Action Args
2022-04-11 14:57:07adminsetgithub: 54386
2010-10-29 20:48:45terry.reedysetstatus: open -> closed

nosy: + terry.reedy
messages: + msg119936

resolution: not a bug
2010-10-23 12:21:36ocean-citycreate