Fix check for memory allocation
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 27 May 2024 17:37:17 +0000 (19:37 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 27 May 2024 17:37:17 +0000 (19:37 +0200)
commit4013a5ada25241ead6a3265d6edf9aadb654dc00
treec7941e8dabe2612a8995be87fdfc8301dd006ae0
parent7c655a04a2dc84b59ed6dce97bd38b79e734ecca
Fix check for memory allocation

Commit 61461a300c1 accidentally checked memory allocation success
using the wrong variable.

Author: Ranier Vilela <ranier.vf@gmail.com>
Reviewed-by: Jelte Fennema-Nio <postgres@jeltef.nl>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAEudQAqQFTH7xCB-+K6zEKjfqbhqCxcr_w4DuJTxVT6h3vzu2w@mail.gmail.com
src/interfaces/libpq/fe-cancel.c