From 5fa59bf87d44f1eb6b712c017a16aba08ab89e8c Mon Sep 17 00:00:00 2001 From: Dave Cramer Date: Wed, 30 Apr 2025 14:51:50 -0400 Subject: [PATCH] fix double free stmt --- statement.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/statement.c b/statement.c index c6e28f64..707370ee 100644 --- a/statement.c +++ b/statement.c @@ -291,6 +291,8 @@ PGAPI_FreeStmt(HSTMT hstmt, return SQL_ERROR; /* stmt may be executing a * transaction */ } + // remove the connection from the statement + stmt->hdbc = NULL; } if (stmt->execute_delegate)