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:24
Message-ID: E1vdRox-002OmF-2y@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_5_STABLE

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

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:29 pgpool: Fix to check the return value of malloc().
Previous Message Tatsuo Ishii 2026-01-07 11:35:18 pgpool: Fix to check the return value of malloc().