summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane2019-03-24 19:13:21 +0000
committerTom Lane2019-03-24 19:13:21 +0000
commit9264888225ac4dabf399f06775073e14c38a87f7 (patch)
treebfb882133c2521231dfb55647d5b7b259f702427 /doc/src
parentf8a69a68a08715ab5101a9a5eed4e08ba0b3946b (diff)
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.
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions