postgresql/contrib/vacuumlo
Tom Lane bd9396a0b2 Avoid double-free in vacuumlo error path.
The code would do "PQclear(res)" twice if lo_unlink failed, evidently
due to careless thinking about how far out a "break" would break.
Remove the extra PQclear and adjust the loop logic so that we'll fall
out of both levels of loop after an error, as was clearly the intent.

Spotted by Coverity.  I have no idea why it took this long to notice,
since the bug has been there since commit 67ccbb080.  Accordingly,
back-patch to all supported branches.
2019-03-24 15:13:20 -04:00
..
t Rework option set of vacuumlo 2018-08-28 21:42:45 +09:00
.gitignore Rework option set of vacuumlo 2018-08-28 21:42:45 +09:00
Makefile Add PGXS options to control TAP and isolation tests, take two 2018-12-03 09:27:35 +09:00
vacuumlo.c Avoid double-free in vacuumlo error path. 2019-03-24 15:13:20 -04:00