From: Tatsuo Ishii Date: Fri, 18 Jul 2025 05:40:14 +0000 (+0900) Subject: Fix memory leak. X-Git-Tag: V4_7_0_BETA1~75 X-Git-Url: http://git.postgresql.org/gitweb/constraints.php?a=commitdiff_plain;h=1b63aeb31;p=pgpool2.git Fix memory leak. Fix resource leak in pool_push_pending_data pointed out by Coverity. Backpatch-through: v4.2 --- diff --git a/src/protocol/pool_process_query.c b/src/protocol/pool_process_query.c index b69cb3d52..467e50baa 100644 --- a/src/protocol/pool_process_query.c +++ b/src/protocol/pool_process_query.c @@ -5304,6 +5304,8 @@ pool_push_pending_data(POOL_CONNECTION *backend) ereport(DEBUG1, (errmsg("pool_push_pending_data: ERROR response found"))); pool_set_ignore_till_sync(); + if (buf) + pfree(buf); break; } num_pushed_messages++;