mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-30 04:33:45 +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
7e9e11ee27
commit
8aaa4eabca
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user