From f6e68917f194313f2812c3a21220c6713bb46469 Mon Sep 17 00:00:00 2001 From: Daniel Milde Date: Wed, 3 Mar 2021 00:00:26 +0100 Subject: [PATCH] run gc when the analysis is done --- tui/actions.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tui/actions.go b/tui/actions.go index ca8a104ff..1d6fd59e8 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