Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

Commit

Permalink
save.go: missing f.Close()
Browse files Browse the repository at this point in the history
  • Loading branch information
gprggr committed Dec 31, 2014
1 parent 07a96a1 commit 0baa7ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions save.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func save(pkgs []string) error {
}
_, err = gnew.WriteTo(f)
if err != nil {
f.Close()
return err
}
err = f.Close()
Expand Down Expand Up @@ -179,6 +180,7 @@ func readOldGodeps(g *Godeps) (isFile bool, err error) {
return false, err
}
err = json.NewDecoder(f).Decode(g)
f.Close()
return isFile, err
}

Expand Down

0 comments on commit 0baa7ea

Please sign in to comment.