mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-04 19:53:04 +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);
|
PyMem_Free(self->encoding);
|
||||||
if (self->critical) free(self->critical);
|
if (self->critical) free(self->critical);
|
||||||
if (self->cancel) PQfreeCancel(self->cancel);
|
if (self->cancel) PQfreeCancel(self->cancel);
|
||||||
|
PQclear(self->pgres);
|
||||||
|
|
||||||
connection_clear(self);
|
connection_clear(self);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user