diff --git a/src/core/httphandler/notebook.go b/src/core/httphandler/notebook.go index 5c958ce..5a487ce 100644 --- a/src/core/httphandler/notebook.go +++ b/src/core/httphandler/notebook.go @@ -58,6 +58,7 @@ func GetFileContent(abspath string) (string, error) { if err != nil { return "", pkgErrors.Wrapf(err, "Could not open notebook main file %s; ", abspath) } + defer f.Close() content, err := ioutil.ReadAll(f) if err != nil {