- Notifications
You must be signed in to change notification settings - Fork5
Commitd38e8d3
committed
Fix file descriptor leak after failure of a \setshell command in pgbench.
If the called command fails to return data, runShellCommand forgot topclose() the pipe before returning. This is fairly harmless in the currentcode, because pgbench would then abandon further processing of that clientthread; so no more than nclients descriptors could be leaked this way. Butit'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.1 parentc831593 commitd38e8d3
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
958 | 958 |
| |
959 | 959 |
| |
960 | 960 |
| |
| 961 | + | |
961 | 962 |
| |
962 | 963 |
| |
963 | 964 |
| |
|
0 commit comments
Comments
(0)