Commit 7c9acae2 authored by Russ Cox's avatar Russ Cox

godoc: plug file descriptor leak

R=gri
CC=r
https://golang.org/cl/157149
parent 9da8d884
......@@ -859,6 +859,7 @@ func isTextFile(path string) bool {
if err != nil {
return false
}
defer f.Close();
var buf [1024]byte;
n, err := f.Read(&buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment