mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-23 01:16:34 +03:00
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:
parent
e11d0d39ec
commit
85b1914ad6
|
@ -359,8 +359,8 @@ lobject_dealloc(PyObject* obj)
|
|||
if (lobject_close(self) < 0)
|
||||
PyErr_Print();
|
||||
Py_XDECREF((PyObject*)self->conn);
|
||||
PyMem_Free(self->smode);
|
||||
}
|
||||
PyMem_Free(self->smode);
|
||||
|
||||
Dprintf("lobject_dealloc: deleted lobject object at %p, refcnt = "
|
||||
FORMAT_CODE_PY_SSIZE_T, obj, Py_REFCNT(obj));
|
||||
|
|
Loading…
Reference in New Issue
Block a user