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: invalid call to PyMem_Free() in fileio_init()
Type: Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: gregory.p.smith Nosy List: gregory.p.smith, nnorwitz, vstinner
Priority: normal Keywords: easy, patch

Created on 2008-07-06 16:30 by vstinner, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
fileio_pymem_free.patch vstinner, 2008-07-06 16:30 Remove invalid call to PyMeM_Free
Messages (3)
msg69338 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2008-07-06 16:30
fileio_init() calls PyMem_Free(name); whereas name comes from 
PyArg_ParseTupleAndKeywords().

Attached patch removes this invalid call.

The bug may also affect Python3.0.
msg69342 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2008-07-06 17:08
thanks.  fixed in trunk r64758.  i'm assuming that'll be merged into
py3k automagically.
msg71884 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2008-08-24 21:41
In 3.0 the free is necessary, though see http://bugs.python.org/issue3662 .
History
Date User Action Args
2022-04-11 14:56:36adminsetgithub: 47554
2008-08-24 21:41:26nnorwitzsetstatus: open -> closed
nosy: + nnorwitz
messages: + msg71884
2008-07-06 17:08:08gregory.p.smithsetresolution: accepted
messages: + msg69342
versions: + Python 3.0, - Python 2.6
2008-07-06 16:59:32gregory.p.smithsetpriority: normal
assignee: gregory.p.smith
keywords: + easy
nosy: + gregory.p.smith
2008-07-06 16:30:18vstinnercreate