Author Rhamphoryncus
Recipients Rhamphoryncus
Date 2008-06-20.21:36:03
SpamBayes Score 0.192598
Marked as misclassified No
Message-id <1213997766.53.0.685117931663.issue3153@psf.upfronthosting.co.za>
In-reply-to
Content
Found in Modules/_sqlite/cursor.c:

        self->statement = PyObject_New(pysqlite_Statement,
&pysqlite_StatementTy
pe);
        if (!self->statement) {
            goto error;
        }
        rc = pysqlite_statement_create(self->statement,
self->connection, operation);
        if (rc != SQLITE_OK) {
            self->statement = 0;
            goto error;
        }

Besides the ugliness of allocating the object before passing it to the
"create" function, if pysqlite_statement_create fails, the object is leaked.
History
Date User Action Args
2008-06-20 21:36:07Rhamphoryncussetspambayes_score: 0.192598 -> 0.192598
recipients: + Rhamphoryncus
2008-06-20 21:36:06Rhamphoryncussetspambayes_score: 0.192598 -> 0.192598
messageid: <1213997766.53.0.685117931663.issue3153@psf.upfronthosting.co.za>
2008-06-20 21:36:05Rhamphoryncuslinkissue3153 messages
2008-06-20 21:36:04Rhamphoryncuscreate