Fix missing PQclear() in libpqrcv_endstreaming().
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/libpqwalreceiver/libpqwalreceiver.c | modified | +1 −0 |