aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/sklad/db.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/sklad/db.go b/cmd/sklad/db.go
index fc79f0f..3def2e5 100644
--- a/cmd/sklad/db.go
+++ b/cmd/sklad/db.go
@@ -298,6 +298,7 @@ func loadDatabase() error {
if err != nil {
return err
}
+ defer dbFile.Close()
if err := json.NewDecoder(dbFile).Decode(&db); err != nil {
return err
}