pgsql: Fix memory leaks in libpqwalreceiver

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix memory leaks in libpqwalreceiver
Date: 2017-01-23 16:07:40
Message-ID: E1cVh9g-0001YY-E0@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix memory leaks in libpqwalreceiver

The results of the libpq functions PQescapeIdentifier() and
PQescapeLiteral() must be freed explicitly. Also handle errors in these
functions better.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/16a61884b5956778cae64a5746f4cdd9ae1ae01b

Modified Files
--------------
.../libpqwalreceiver/libpqwalreceiver.c | 32 ++++++++++++++++++----
1 file changed, 26 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-01-23 16:56:43 pgsql: Fix pointer confusion
Previous Message Alvaro Herrera 2017-01-23 15:57:45 pgsql: Prefetch blocks during lazy vacuum's truncation scan