diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/sklad/db.go | 1 |
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 } |