[Patches] [ python-Patches-1220242 ] _csv.c leaks when dialect creation fails
SourceForge.net
noreply at sourceforge.net
Tue Jun 14 12:04:30 CEST 2005
Patches item #1220242, was opened at 2005-06-14 11:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1220242&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Modules
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Hudson (mwh)
Assigned to: Skip Montanaro (montanaro)
Summary: _csv.c leaks when dialect creation fails
Initial Comment:
test_csv currently leaks 48 refs per run, and they all
seem to be fixed by this simple patch.
(The problem is that when you create a Dialect
instance, but then validation fails for some reason,
you need to decref the partially created instance
before returning NULL).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1220242&group_id=5470
More information about the Patches
mailing list