Commit 974b23f5 authored by Robert Griesemer's avatar Robert Griesemer

close file after use

R=rsc
DELTA=1  (1 added, 0 deleted, 0 changed)
OCL=35778
CL=35780
parent 33425742
......@@ -174,6 +174,7 @@ func ParsePackage(path string, filter func(*os.Dir) bool, mode uint) (*ast.Packa
if err != nil {
return nil, err;
}
defer fd.Close();
list, err := fd.Readdir(-1);
if err != nil {
......
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