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.

Author Oren Milman
Recipients Oren Milman
Date 2017-10-09.20:32:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507581137.79.0.213398074469.issue31740@psf.upfronthosting.co.za>
In-reply-to
Content
The following code causes refleaks:
import sqlite3
connection = sqlite3.Connection.__new__(sqlite3.Connection)
connection.__init__('foo')
connection.__init__('foo')

This is because pysqlite_connection_init() (in Modules/_sqlite/connection.c)
doesn't decref (if needed) before assigning to various fields of `self`.

I would open a PR to fix this soon.
History
Date User Action Args
2017-10-09 20:32:17Oren Milmansetrecipients: + Oren Milman
2017-10-09 20:32:17Oren Milmansetmessageid: <1507581137.79.0.213398074469.issue31740@psf.upfronthosting.co.za>
2017-10-09 20:32:17Oren Milmanlinkissue31740 messages
2017-10-09 20:32:17Oren Milmancreate