From ea0fc383ef839466b97f31b976bc5e6523164b41 Mon Sep 17 00:00:00 2001 From: Aaron Son Date: Wed, 15 Jan 2025 05:37:20 -0800 Subject: [PATCH] go/store/nbs: ghost_store.go: Close file after initialization. --- go/store/nbs/ghost_store.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/store/nbs/ghost_store.go b/go/store/nbs/ghost_store.go index a3e8be1232e..c6a5bc772c4 100644 --- a/go/store/nbs/ghost_store.go +++ b/go/store/nbs/ghost_store.go @@ -54,6 +54,7 @@ func NewGhostBlockStore(nomsPath string) (*GhostBlockStore, error) { // Other error, permission denied, etc, we want to hear about. return nil, err } + defer f.Close() scanner := bufio.NewScanner(f) skiplist := &hash.HashSet{} for scanner.Scan() {