[Python-bugs-list] [Bug #116236] Possible leak in pystate.c

noreply@sourceforge.net noreply@sourceforge.net
Fri, 6 Oct 2000 07:47:38 -0700


Bug #116236, was updated on 2000-Oct-06 06:26
Here is a current snapshot of the bug.

Project: Python
Category: Core
Status: Closed
Resolution: Invalid
Bug Group: Not a Bug
Priority: 5
Summary: Possible leak in pystate.c

Details: Possible leak in pystate.c
It seems that head_mutex allocated with the HEAD_INIT() macro is never deleted.
Please, give me explanations...

Follow-Ups:

Date: 2000-Oct-06 07:37
By: gvanrossum

Comment:
It would only be a leak if head was ever overwritten. The way the code is written however, head_mutex is a global that is initialized the first time HEAD_INIT() is used and never again. While you may argue that this allocates some dynamic memory that is never deleted, the memory is still live (from the static global head_mutex pointer variable) so it is not a leak.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=116236&group_id=5470