From 7407fc6bcfdb8400cc28c044e5d540d5623d67e6 Mon Sep 17 00:00:00 2001 From: jarvis24young <749843026@qq.com> Date: Fri, 15 May 2026 14:10:48 +0800 Subject: [PATCH] Clear PGresults from per-query rollback --- connection.c | 2 ++ 1 file changed, 2 insertions(+) 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) {