diff --git a/connection.c b/connection.c index ae751c0f..7c4d2862 100644 --- a/connection.c +++ b/connection.c @@ -1779,6 +1779,8 @@ CC_internal_rollback(ConnectionClass *self, int rollback_type, BOOL ignore_abort default: handle_pgres_error(self, pgres, __FUNCTION__, NULL, !ret); } + PQclear(pgres); + pgres = NULL; } if (!ret) {