[ python-Bugs-936915 ] Py_FilesystemDefaultEncoding leaks

SourceForge.net noreply at sourceforge.net
Sat Jun 5 12:39:27 EDT 2004


Bugs item #936915, was opened at 2004-04-17 08:53
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=936915&group_id=5470

Category: Python Interpreter Core
Group: Python 2.3
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Laszlo Toth (avenger_teambg)
Assigned to: Nobody/Anonymous (nobody)
Summary: Py_FilesystemDefaultEncoding leaks

Initial Comment:
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.


----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2004-06-05 12:39

Message:
Logged In: YES 
user_id=11375

Closing.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2004-04-20 15:56

Message:
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)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=936915&group_id=5470



More information about the Python-bugs-list mailing list