pgsql: Fix allocation check to test the right variable

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix allocation check to test the right variable
Date: 2025-06-17 20:49:40
Message-ID: E1uRdFU-0029zO-2i@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix allocation check to test the right variable

The memory allocation for cancelConn->be_cancel_key was accidentally
checking the be_cancel_key member in the conn object instead of the
one in cancelConn.

Author: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
Reviewed-by: Daniel Gustafsson <daniel(at)yesql(dot)se>
Discussion: https://postgr.es/m/CAEudQAq4ySDR6dsg9xwurBXwud02hX7XCOZZAcZx-JMn6A06nA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/917c00d761fa9ba3b2bc365804ef38fc60ec023e

Modified Files
--------------
src/interfaces/libpq/fe-cancel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2025-06-18 00:01:01 pgsql: doc PG 18 relnotes: add markup, still need to add links
Previous Message Tomas Vondra 2025-06-17 14:52:24 pgsql: amcheck: Fix posting tree checks in gin_index_check()