diff --git a/cmd/index.go b/cmd/index.go index 31e3983..2e1501a 100644 --- a/cmd/index.go +++ b/cmd/index.go @@ -9,6 +9,7 @@ import ( "fmt" "net/http" "os" + "runtime" "sync" "time" @@ -212,6 +213,8 @@ func serveIndexRebuild(args []string, index *fileIndex, formats types.Types, enc time.Since(startTime).Round(time.Microsecond), ) } + + runtime.GC() } } diff --git a/cmd/root.go b/cmd/root.go index 28c162e..57c1b64 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -17,7 +17,7 @@ import ( const ( AllowedCharacters string = `^[A-z0-9.\-_]+$` - ReleaseVersion string = "5.4.2" + ReleaseVersion string = "5.4.3" ) var (