From 9b8842e380cd83578b79ea36bd03445c5f4e49d1 Mon Sep 17 00:00:00 2001 From: Richard Elkins Date: Mon, 8 Jul 2024 07:54:42 -0500 Subject: [PATCH] always close database after use, even if read-only --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 517f0d1..6b182b4 100644 --- a/main.go +++ b/main.go @@ -95,6 +95,7 @@ func main() { if glob.FlagPlot { helpers.DBOpen(glob.DbDriver, glob.DirDatabase, glob.DbFile) helpers.Plodder() + helpers.DBClose() } // Run a report? @@ -105,6 +106,7 @@ func main() { } else { helpers.ReportSC(rpt) } + helpers.DBClose() } }