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:41
Message-ID: E1vdRpF-002OqA-06@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
------
master

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

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-08 05:51:56 pgpool: Refactor streaming replication worker child process.
Previous Message Tatsuo Ishii 2026-01-07 11:35:35 pgpool: Fix to check the return value of malloc().