[Python-bugs-list] [ python-Bugs-808756 ] refleaks in _hotshot.c

SourceForge.net noreply at sourceforge.net
Mon Sep 22 09:28:38 EDT 2003


Bugs item #808756, was opened at 2003-09-18 14:01
Message generated for change (Comment added) made by tim_one
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=808756&group_id=5470

Category: Extension Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Hudson (mwh)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: refleaks in _hotshot.c

Initial Comment:
My regrtest patches revealed a few leaks in

Modules/_hotshot.c.



Attached patch seems to fix.

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

>Comment By: Tim Peters (tim_one)
Date: 2003-09-22 09:28

Message:
Logged In: YES 
user_id=31435

Just attaching Armin's patch (hotshot2.diff).

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

Comment By: Armin Rigo (arigo)
Date: 2003-09-22 08:01

Message:
Logged In: YES 
user_id=4771

Unless I'm mistaken there is a misplaced DECREF.



I'd love to attach my patch but cannot do so. Here it is:

http://arigo.tunes.org/hotshot2.diff



A more general note is about using 'N' in Py_BuildValue. Its

implementation seems to be buggy because it does not always

consume a reference: it won't do so if an error occurs

before it gets there. I guess I'll submit a separate bug

report/patch for this too.

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

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



More information about the Python-bugs-list mailing list