mirror of https://github.com/postgres/postgres
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.REL9_1_STABLE
parent
bca39b5788
commit
926da211a3
Loading…
Reference in new issue