Fix check for memory allocation
Daniel Gustafsson <dgustafsson@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/fe-cancel.c | modified | +1 −1 |
Discussion
- Fix calloc check if oom (PQcancelCreate) 9 messages · 2024-05-27