close file mapping handle
parent
076926a417
commit
21279a941e
|
@ -69,6 +69,7 @@ func NewMapping(filename string) (*Mapping, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
defer f.Close()
|
||||||
decoder := json.NewDecoder(f)
|
decoder := json.NewDecoder(f)
|
||||||
|
|
||||||
mapping := Mapping{}
|
mapping := Mapping{}
|
||||||
|
|
Loading…
Reference in New Issue