Skip to content

Commit

Permalink
do manual garbage collection at command execution
Browse files Browse the repository at this point in the history
  • Loading branch information
kajes committed Jun 27, 2024
1 parent 98c59aa commit 8ae881a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"os"
"path/filepath"
"reflect"
"runtime"
"strings"
"time"

Expand Down Expand Up @@ -233,6 +234,7 @@ func BindEnvs(iface interface{}, parts ...string) {
}

func Execute() cmdutil.ExitCode {
defer runtime.GC()
var currentProfile string
rFlag := pflag.NewFlagSet("", pflag.ContinueOnError)
rFlag.StringVarP(&currentProfile, "profile", "p", "", "")
Expand Down

0 comments on commit 8ae881a

Please sign in to comment.