Make sure to free the connection's pgres on delete

This commit is contained in:
Daniele Varrazzo 2019-03-17 02:14:18 +00:00
parent 734845b79a
commit 963123812d

View File

@ -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);