diff options
author | Daniel Milde <daniel@milde.cz> | 2021-03-03 00:00:26 +0100 |
---|---|---|
committer | Daniel Milde <daniel@milde.cz> | 2021-03-03 00:00:26 +0100 |
commit | f6e68917f194313f2812c3a21220c6713bb46469 (patch) | |
tree | 8b132f7866921ea8d476c34578d2a6b1fc33ec1f | |
parent | d0dbb18608dad6bd0e48021ce1bf4124d6a39eea (diff) |
run gc when the analysis is donev4.7.0
-rw-r--r-- | tui/actions.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tui/actions.go b/tui/actions.go index ca8a104..1d6fd59 100644 --- a/tui/actions.go +++ b/tui/actions.go @@ -2,6 +2,7 @@ package tui import ( "path/filepath" + "runtime" "github.com/dundee/gdu/v4/analyze" "github.com/dundee/gdu/v4/device" @@ -72,6 +73,7 @@ func (ui *UI) AnalyzePath(path string, parentDir *analyze.Dir) { go func() { ui.currentDir = ui.analyzer.AnalyzeDir(abspath, ui.ShouldDirBeIgnored) + runtime.GC() if parentDir != nil { ui.currentDir.Parent = parentDir |