[Python-checkins] cpython (merge 3.2 -> default): merge 3.2

benjamin.peterson python-checkins at python.org
Wed Jun 1 04:32:06 CEST 2011


http://hg.python.org/cpython/rev/f33e21c51307
changeset: 70570:f33e21c51307
parent: 70568:6035962e2cb0
parent: 70569:a856be6688a6
user: Benjamin Peterson <benjamin at python.org>
date: Tue May 31 21:31:59 2011 -0500
summary:
 merge 3.2
files:
 Modules/_sqlite/connection.c | 2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -200,11 +200,13 @@
 weakref = PyList_GetItem(self->statements, i);
 statement = PyWeakref_GetObject(weakref);
 if (statement != Py_None) {
+ Py_INCREF(statement);
 if (action == ACTION_RESET) {
 (void)pysqlite_statement_reset((pysqlite_Statement*)statement);
 } else {
 (void)pysqlite_statement_finalize((pysqlite_Statement*)statement);
 }
+ Py_DECREF(statement);
 }
 }
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /