Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a685f7

Browse files
author
Victor Stinner
committed
Merged revisions 78894 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ........ r78894 | victor.stinner | 2010-03-13 01:57:22 +0100 (sam., 13 mars 2010) | 4 lines sqlite3: Fix _PyUnicode_AsStringAndSize() error handler. Destroy begin_statement (not statement) on error. ........
1 parent e1947be commit 8a685f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_sqlite/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ static int pysqlite_connection_set_isolation_level(pysqlite_Connection* self, Py
941941

942942
statement = _PyUnicode_AsStringAndSize(begin_statement, &size);
943943
if (!statement) {
944-
Py_DECREF(statement);
944+
Py_DECREF(begin_statement);
945945
return -1;
946946
}
947947
self->begin_statement = PyMem_Malloc(size + 2);

0 commit comments

Comments
 (0)