From 89866846f395115dd7ab576077067783b8119e66 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 2 Feb 2021 13:30:05 +0000 Subject: [eeboxmltohocr] Fix bug causing error if there were many hocr files --- cmd/eeboxmltohocr/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/eeboxmltohocr/main.go b/cmd/eeboxmltohocr/main.go index 867717f..25c4204 100644 --- a/cmd/eeboxmltohocr/main.go +++ b/cmd/eeboxmltohocr/main.go @@ -111,6 +111,7 @@ func main() { if err != nil { log.Fatalf("Could not write file %s: %v\n", fn, err) } + f.Close() // do this explicitly so we don't end up with too many open simultaneously } } -- cgit v1.2.1-24-ge1ad