]> granicus.if.org Git - postgresql/commit
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)
commit0ac1fedab9e87756d13b22117f29fe4c5212da75
treeeb28daa87d1b31af504a1a3c03eff576267dbbe9
parente44735c48821e40b2679d5b69c4d47e98ddaae6f
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