Fix missing PQclear() in libpqrcv_endstreaming().
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 12 Feb 2015 00:20:49 +0000 (19:20 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 12 Feb 2015 00:20:49 +0000 (19:20 -0500)
commit4f38a281a3d4a7cbcf9de2f676d44336d57b7717
tree6025dc0f47c1cf15492044c495cb21f13bd7aec7
parent58146d35deed3bd3e05ce4b5ba529e4e4a369ddb
Fix missing PQclear() in libpqrcv_endstreaming().

This omission leaked one PGresult per WAL streaming cycle, which possibly
would never be enough to notice in the real world, but it's still a leak.

Per Coverity.  Back-patch to 9.3 where the error was introduced.
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c