Skip to content

Commit

Permalink
[ISSUE apache#922]close file after it was read in internal fiel utils.
Browse files Browse the repository at this point in the history
  • Loading branch information
zc24 authored Sep 27, 2022
1 parent 0323905 commit 4c9c5db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/utils/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func FileReadAll(path string) ([]byte, error) {
if err != nil {
return nil, err
}
CheckError(fmt.Sprintf("close %s", file.Name()), file.Close())
return data, nil
}

Expand Down

0 comments on commit 4c9c5db

Please sign in to comment.