diff --git a/lib/common/util.go b/lib/common/util.go index 41f8b3c..3c4a57b 100755 --- a/lib/common/util.go +++ b/lib/common/util.go @@ -119,6 +119,7 @@ func ReadAllFromFile(filePath string) ([]byte, error) { if err != nil { return nil, err } + defer f.Close() return ioutil.ReadAll(f) }