mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +08:00
don't leak special-case tuples (present in unicode modes)
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user