Fix check for memory allocation

Daniel Gustafsson <dgustafsson@postgresql.org>

Commit: 4013a5ada25241ead6a3265d6edf9aadb654dc00
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: 2024-05-27T17:37:17Z
Releases: 17.0
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

Files

PathChange+/−
src/interfaces/libpq/fe-cancel.c modified +1 −1

Discussion