Skip to content

Commit

Permalink
run gc when the analysis is done
Browse files Browse the repository at this point in the history
  • Loading branch information
dundee committed Mar 2, 2021
1 parent d0dbb18 commit f6e6891
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tui/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package tui

import (
"path/filepath"
"runtime"

"github.com/dundee/gdu/v4/analyze"
"github.com/dundee/gdu/v4/device"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f6e6891

Please sign in to comment.