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 08:01:26 +0000 (11:01 +0300)
commitc890b488063e23f12b5ab01c9a6d254a034fcea2
tree0b253ab1c7c0f2c4c9a2fe1b1c7c5695e2dbfa49
parente6df2e1be6330660ba4d81daa726ae4a71535aa9
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