Skip to content

Commit

Permalink
Fix temp file leak
Browse files Browse the repository at this point in the history
  • Loading branch information
rj45 committed Dec 11, 2021
1 parent c7fae94 commit e6f9218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func Compile(outname, dir string, patterns []string, assemble, run bool) int {
}
bintemp.Close() // customasm will write to it
binfile = bintemp.Name()
// defer os.Remove(bintemp.Name())
defer os.Remove(bintemp.Name())

root := goenv.Get("NANOGOROOT")
path := filepath.Join(root, "arch", arch.Name(), "customasm")
Expand Down

0 comments on commit e6f9218

Please sign in to comment.