[#316] cmd/cli: Close location database after locode info cmd execution

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-02-09 10:13:15 +03:00 committed by Leonard Lyubich
parent 38466d5173
commit cdab2fc520

View file

@ -156,6 +156,8 @@ var (
return err
}
defer targetDB.Close()
record, err := locodedb.LocodeRecord(targetDB, locodeInfoCode)
if err != nil {
return err