summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--psycopg/connection_type.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/psycopg/connection_type.c b/psycopg/connection_type.c
index d4a969b..96e5647 100644
--- a/psycopg/connection_type.c
+++ b/psycopg/connection_type.c
@@ -1432,6 +1432,7 @@ connection_dealloc(PyObject* obj)
PyMem_Free(self->encoding);
if (self->critical) free(self->critical);
if (self->cancel) PQfreeCancel(self->cancel);
+ PQclear(self->pgres);
connection_clear(self);