From bbf96d05808e5bbcbf78ee67a0b1715887d1309d Mon Sep 17 00:00:00 2001 From: ledgerwatch Date: Tue, 14 Jun 2022 22:38:18 +0100 Subject: [PATCH] Close compressor (#491) Co-authored-by: Alexey Sharp --- state/merge.go | 1 + 1 file changed, 1 insertion(+) diff --git a/state/merge.go b/state/merge.go index 18e15edd5..0b2c52350 100644 --- a/state/merge.go +++ b/state/merge.go @@ -412,6 +412,7 @@ func (d *Domain) mergeFiles(files [][NumberOfTypes]*filesItem, r DomainRanges, m if err = comp.Compress(); err != nil { return outItems, err } + comp.Close() comp = nil if outItem.decompressor, err = compress.NewDecompressor(datPath); err != nil { return outItems, fmt.Errorf("merge %s remove vals decompressor(no val) %s [%d-%d]: %w", d.filenameBase, fType.String(), startTxNum, endTxNum, err)