Fixed dealloc of lobject->smode

I put it by mistake into the in the self->conn checked block in the
previous commit.
This commit is contained in:
Daniele Varrazzo 2013-11-27 12:59:14 +00:00
parent 7e9e11ee27
commit 8aaa4eabca

View File

@ -359,8 +359,8 @@ lobject_dealloc(PyObject* obj)
if (lobject_close(self) < 0) if (lobject_close(self) < 0)
PyErr_Print(); PyErr_Print();
Py_XDECREF((PyObject*)self->conn); Py_XDECREF((PyObject*)self->conn);
PyMem_Free(self->smode);
} }
PyMem_Free(self->smode);
Dprintf("lobject_dealloc: deleted lobject object at %p, refcnt = " Dprintf("lobject_dealloc: deleted lobject object at %p, refcnt = "
FORMAT_CODE_PY_SSIZE_T, obj, Py_REFCNT(obj)); FORMAT_CODE_PY_SSIZE_T, obj, Py_REFCNT(obj));