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: Py_FilesystemDefaultEncoding leaks
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: akuchling, avenger_teambg, loewis
Priority: normal Keywords:

Created on 2004-04-17 12:53 by avenger_teambg, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg20525 - (view) Author: Laszlo Toth (avenger_teambg) Date: 2004-04-17 12:53
I've compiled Python from the 2.3.3 sources, running on
RH Linux 8.

In pythonrun.c there is a line: codeset=strdup(codeset)
Later it is assigned to Py_FilesystemDefaultEncoding,
which is never freed. In other cases a constant is
assigned to it which need not to be freed. This is only
a small leak, but definitely one.
msg20526 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-04-20 19:56
Logged In: YES 
user_id=21627

Why is this a leak? Py_FileSystemDefaultEncoding refers to
the string until the process terminates, so the string is
not garbage (and thus not a leak)
msg20527 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2004-06-05 16:39
Logged In: YES 
user_id=11375

Closing.
History
Date User Action Args
2022-04-11 14:56:03adminsetgithub: 40163
2004-04-17 12:53:06avenger_teambgcreate