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: _csv.c leaks when dialect creation fails
Type: Stage:
Components: Extension Modules Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: skip.montanaro Nosy List: mwh, skip.montanaro
Priority: normal Keywords: patch

Created on 2005-06-14 10:04 by mwh, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
csv-leak-fix.diff mwh, 2005-06-14 10:04 mwh's patch #1
Messages (2)
msg48465 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2005-06-14 10:04
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).
msg48466 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2005-06-15 01:34
Logged In: YES 
user_id=44345

Thanks.  Applied as _csv.c 1.37.
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 42084
2005-06-14 10:04:30mwhcreate