diff --git a/pkg/go-nfs/nfs_onread.go b/pkg/go-nfs/nfs_onread.go index 2d9fd1e..107481a 100644 --- a/pkg/go-nfs/nfs_onread.go +++ b/pkg/go-nfs/nfs_onread.go @@ -52,6 +52,7 @@ func onRead(ctx context.Context, w *response, userHandle Handler) error { } return &NFSStatusError{NFSStatusAccess, err} } + defer fh.Close(ctx) resp := nfsReadResponse{}