summaryrefslogtreecommitdiff
path: root/src/tutorial/complex.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-02-11 19:09:54 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2015-02-11 19:09:54 -0500
commit0168fb07dad578433c5819bcaa3fc71a5a9dc0eb (patch)
tree5230602788148e6a02d792995c0aae6eeb634dee /src/tutorial/complex.source
parent8b63f89498f2e3ff0e1d420b023ccb76c34c2cda (diff)
Fix minor memory leak in ident_inet().
We'd leak the ident_serv data structure if the second pg_getaddrinfo_all (the one for the local address) failed. This is not of great consequence because a failure return here just leads directly to backend exit(), but if this function is going to try to clean up after itself at all, it should not have such holes in the logic. Try to fix it in a future-proof way by having all the failure exits go through the same cleanup path, rather than "optimizing" some of them. Per Coverity. Back-patch to 9.2, which is as far back as this patch applies cleanly.
Diffstat (limited to 'src/tutorial/complex.source')
0 files changed, 0 insertions, 0 deletions