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)
commit734bbf2e978314cad86e1dd8fefe7f0c3f52a4ef
treeef116f72d58f87ede6eeac1583b91c599f42ac52
parentbcf2decdceb542efb2e55db2dc803b72c2e4cb5c
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