summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-03-21 20:05:51 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-03-21 20:05:51 (GMT)
commit8a685f7184c543bf8515ffcc2597246c0149fbca (patch)
tree19912339e14e4c7d054ed9e6527475b9d56fec4a /Modules/_sqlite
parente1947beba01c693ff133067d930ab871ad236cfd (diff)
downloadcpython-8a685f7184c543bf8515ffcc2597246c0149fbca.zip
cpython-8a685f7184c543bf8515ffcc2597246c0149fbca.tar.gz
cpython-8a685f7184c543bf8515ffcc2597246c0149fbca.tar.bz2
Merged revisions 78894 via svnmerge from
svn+ssh://pythondev@svn.python.org/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. ........
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r--Modules/_sqlite/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index b08b07d..08588bc 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -941,7 +941,7 @@ static int pysqlite_connection_set_isolation_level(pysqlite_Connection* self, Py
statement = _PyUnicode_AsStringAndSize(begin_statement, &size);
if (!statement) {
- Py_DECREF(statement);
+ Py_DECREF(begin_statement);
return -1;
}
self->begin_statement = PyMem_Malloc(size + 2);