forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit961df18
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 parent662eebd commit961df18
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
691 | 691 |
| |
692 | 692 |
| |
693 | 693 |
| |
| 694 | + | |
694 | 695 |
| |
695 | 696 |
| |
696 | 697 |
| |
|
0 commit comments
Comments
(0)