mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Fix valgrind problem with invalid memory read
This commit is contained in:
parent
5b03065087
commit
195e4e67e7
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue