We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1153287 commit 21a91a2Copy full SHA for 21a91a2
_mysql.c
@@ -2212,12 +2212,10 @@ static void
2212
_mysql_ConnectionObject_dealloc(
2213
_mysql_ConnectionObject *self)
2214
{
2215
- PyObject *o;
2216
-
2217
PyObject_GC_UnTrack(self);
2218
if (self->open) {
2219
- o = _mysql_ConnectionObject_close(self, NULL);
2220
- Py_XDECREF(o);
+ mysql_close(&(self->connection));
+ self->open = 0;
2221
}
2222
MyFree(self);
2223
0 commit comments