Fix some minor resource leaks in PerformRadiusTransaction().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 7cbd944662854a0a5264895bcba3ce7f9bfd1c1f
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-03-26T21:02:38Z
Releases: 10.0
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

Files

PathChange+/−
src/backend/libpq/auth.c modified +5 −1