pgpool: Fix to check the return value of malloc().

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgpool-committers(at)lists(dot)postgresql(dot)org
Subject: pgpool: Fix to check the return value of malloc().
Date: 2026-01-07 11:35:12
Message-ID: E1vdRom-002OjH-1m@gothos.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgpool-committers

Fix to check the return value of malloc().

create_inet_domain_sockets() forgot to check the return value of
malloc() while allocating memory for socket fds.

Backpatch-through: v4.3

Branch
------
V4_3_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=335d616ff71b5bda62b2252f56304698f944f8c7

Modified Files
--------------
src/main/pgpool_main.c | 3 +++
1 file changed, 3 insertions(+)

Browse pgpool-committers by date

  From Date Subject
Next Message Tatsuo Ishii 2026-01-07 11:35:18 pgpool: Fix to check the return value of malloc().
Previous Message Tatsuo Ishii 2026-01-07 02:18:06 pgpool: Fix new defects pointed out by Coverity.