Issue 10177: PyUnicode_AsWideCharString and PyMem_Free (original) (raw)

Issue10177

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:07 admin set github: 54386
2010-10-29 20:48:45 terry.reedy set status: open -> closednosy: + terry.reedymessages: + resolution: not a bug
2010-10-23 12:21:36 ocean-city create