aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-12-16 13:31:42 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2014-12-16 13:31:42 -0500
commitd38e8d30cecea96a088330133e232c465a222d0a (patch)
treefb091f761356bce6b45e0aac52e3a01d40607449 /src/backend/access/gist/gistget.c
parentc8315930e6a34b616d9840985c85eb0d856dd2df (diff)
downloadpostgresql-d38e8d30cecea96a088330133e232c465a222d0a.tar.gz
postgresql-d38e8d30cecea96a088330133e232c465a222d0a.zip
Fix file descriptor leak after failure of a \setshell command in pgbench.
If the called command fails to return data, runShellCommand forgot to pclose() the pipe before returning. This is fairly harmless in the current code, because pgbench would then abandon further processing of that client thread; so no more than nclients descriptors could be leaked this way. But it's not hard to imagine future improvements whereby that wouldn't be true. In any case, it's sloppy coding, so patch all branches. Found by Coverity.
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions