Fix some minor resource leaks in PerformRadiusTransaction().
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Mar 2017 21:02:38 +0000 (17:02 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Mar 2017 21:02:38 +0000 (17:02 -0400)
commit7cbd944662854a0a5264895bcba3ce7f9bfd1c1f
tree0d8bf274ef580e84950b291469f5291c5706aa13
parentd77f014efa7eda4357fbc851dbf25c6b256ddf35
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
src/backend/libpq/auth.c