From 68a699fa0ce079abad91235698b476907470ac54 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Fri, 8 May 2015 09:06:53 +0900 Subject: [PATCH] Close file --- commands.go | 1 + 1 file changed, 1 insertion(+) diff --git a/commands.go b/commands.go index eca92a2..86d4329 100644 --- a/commands.go +++ b/commands.go @@ -157,6 +157,7 @@ func cmdNew(db *sql.DB, opts Options) bool { } else { f, err := ioutil.TempFile("", "eton-edit") check(err) + f.Close() openEditor(f.Name()) value_text = readFile(f.Name())