Commit 195e4e67 authored by Neal Norwitz's avatar Neal Norwitz

Fix valgrind problem with invalid memory read

parent 5b030650
......@@ -47,8 +47,6 @@ int statement_create(Statement* self, Connection* connection, PyObject* sql)
PyObject* sql_str;
char* sql_cstr;
self->st = NULL;
self->st = NULL;
self->in_use = 0;
......@@ -80,6 +78,7 @@ int statement_create(Statement* self, Connection* connection, PyObject* sql)
if (rc == SQLITE_OK && check_remaining_sql(tail)) {
(void)sqlite3_finalize(self->st);
self->st = NULL;
rc = PYSQLITE_TOO_MUCH_SQL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment