pgsql: Fix some minor resource leaks in PerformRadiusTransaction().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix some minor resource leaks in PerformRadiusTransaction().
Date: 2017-03-26 21:35:58
Message-ID: E1csFpO-0003qy-Cl@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix some minor resource leaks in PerformRadiusTransaction().

Failure to free serveraddrs pointed out by Coverity, failure to close
socket noted by code-reading. These bugs seem to be quite old, but
given the low probability of taking these error-exit paths and the
minimal consequences of the leaks (since the process would presumably
exit shortly anyway), it doesn't seem worth back-patching.

Michael Paquier and Tom Lane

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7cbd944662854a0a5264895bcba3ce7f9bfd1c1f

Modified Files
--------------
src/backend/libpq/auth.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-03-26 21:44:41 pgsql: Fix typos in logical replication support for initial data copy.
Previous Message Tom Lane 2017-03-26 19:57:07 pgsql: Improve implementation of EEOP_BOOLTEST_* opcodes.