summaryrefslogtreecommitdiff
path: root/cmd/eeboxmltohocr/main.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-02-02 13:30:05 +0000
committerNick White <git@njw.name>2021-02-02 13:30:05 +0000
commit89866846f395115dd7ab576077067783b8119e66 (patch)
tree1a8eb92da4f12cf7aaf0614495ca52c128863e4f /cmd/eeboxmltohocr/main.go
parentf10a7d78422c3baab1d7a9b128f69485bae2cd78 (diff)
[eeboxmltohocr] Fix bug causing error if there were many hocr files
Diffstat (limited to 'cmd/eeboxmltohocr/main.go')
-rw-r--r--cmd/eeboxmltohocr/main.go1
1 files changed, 1 insertions, 0 deletions
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
}
}