summaryrefslogtreecommitdiff
path: root/MySQLdb
diff options
context:
space:
mode:
authorkylev <kylev@9fc6cd9a-920d-0410-adcf-ac96716ed7e8>2009-02-23 23:39:00 +0000
committerkylev <kylev@9fc6cd9a-920d-0410-adcf-ac96716ed7e8>2009-02-23 23:39:00 +0000
commite9c57bd4142b664562766dc2efef92173bf830ee (patch)
treebb036e1e37b7eaaf9d0f84e72502377ef6e0d95a /MySQLdb
parentf15a72a5e47a81f048a97e3b31f6f0fa579290af (diff)
downloadmysqldb1-e9c57bd4142b664562766dc2efef92173bf830ee.tar.gz
don't leak special-case tuples (present in unicode modes)
Diffstat (limited to 'MySQLdb')
-rw-r--r--MySQLdb/_mysql.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/MySQLdb/_mysql.c b/MySQLdb/_mysql.c
index 7b09335..90f50bb 100644
--- a/MySQLdb/_mysql.c
+++ b/MySQLdb/_mysql.c
@@ -418,12 +418,14 @@ _mysql_ResultObject_Initialize(
if (PyInt_Check(pmask)) {
mask = PyInt_AS_LONG(pmask);
if (mask & fields[i].flags) {
+ Py_DECREF(t);
break;
}
else {
- continue;
+ goto cleanup;
}
} else {
+ Py_DECREF(t);
break;
}
}