Fix allocation check to test the right variable
Daniel Gustafsson <dgustafsson@postgresql.org>
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.vf@gmail.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/CAEudQAq4ySDR6dsg9xwurBXwud02hX7XCOZZAcZx-JMn6A06nA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/fe-cancel.c | modified | +1 −1 |
Discussion
- Fix copy-and-past thinko (src/interfaces/libpq/fe-cancel.c) 4 messages · 2025-06-17 → 2025-06-18