pgsql: Fix missing PQclear() in libpqrcv_endstreaming().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix missing PQclear() in libpqrcv_endstreaming().
Date: 2015-02-12 00:21:00
Message-ID: E1YLhWe-0002X4-GR@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/0ac1fedab9e87756d13b22117f29fe4c5212da75

Modified Files
--------------
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c | 1 +
1 file changed, 1 insertion(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2015-02-12 00:27:47 pgsql: Fix typo in logicaldecoding.sgml.
Previous Message Tom Lane 2015-02-12 00:10:06 pgsql: Fix minor memory leak in ident_inet().