diff --git a/middleware/templates/context.go b/middleware/templates/context.go index 6f23e7f3..4f125c99 100644 --- a/middleware/templates/context.go +++ b/middleware/templates/context.go @@ -28,6 +28,7 @@ func (c context) Include(filename string) (string, error) { if err != nil { return "", err } + defer file.Close() body, err := ioutil.ReadAll(file) if err != nil {