mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-16 17:10:32 +03:00
Make sure to free the connection's pgres on delete
This commit is contained in:
parent
734845b79a
commit
963123812d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user