Free PQresult on error in pg_receivexlog.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 12 May 2014 07:17:40 +0000 (10:17 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 12 May 2014 07:59:08 +0000 (10:59 +0300)
commit0ad78306be6bd3db0575b0d046e4cbe7f50635b8
tree096987b2c0d9d570b1fea6a68262eeb47f51f9a1
parentc6d048c97864daa1a5011c5b11484e7d426139ba
Free PQresult on error in pg_receivexlog.

The leak is fairly small and rare, but a leak nevertheless.

Per Coverity report. Backpatch to 9.2, where pg_receivexlog was added.
pg_basebackup shares the code, but it always exits on error, so there is
no real leak.
src/bin/pg_basebackup/receivelog.c