Descriptionos/exec: fix fd leak with Std*Pipe + LookPath
If LookPath in Command fails, sets a sticky error, and then
StdinPipe, StdoutPipe, or StderrPipe were called, those pipe
fds were never cleaned up.
Fixes issue 5071
Patch Set 1 #Patch Set 2 : diff -r 43eb97ed849a https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 43eb97ed849a https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 43eb97ed849a https://go.googlecode.com/hg/ #
MessagesTotal messages: 5
|