From 8aaa4eabcae6a5684538a185e9b952bf2a583aba Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 27 Nov 2013 12:59:14 +0000 Subject: [PATCH] Fixed dealloc of lobject->smode I put it by mistake into the in the self->conn checked block in the previous commit. --- psycopg/lobject_type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psycopg/lobject_type.c b/psycopg/lobject_type.c index d5051570..823a1b76 100644 --- a/psycopg/lobject_type.c +++ b/psycopg/lobject_type.c @@ -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));