close file mapping handle

master
Oliver Tonnhofer 2013-11-04 14:30:32 +01:00
parent 076926a417
commit 21279a941e
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ func NewMapping(filename string) (*Mapping, error) {
if err != nil {
return nil, err
}
defer f.Close()
decoder := json.NewDecoder(f)
mapping := Mapping{}