close file when out of scope
This commit is contained in:
parent
d64c60a7fd
commit
6b39392dfb
1 changed files with 1 additions and 0 deletions
|
|
@ -174,6 +174,7 @@ func (s *Server) createHandler() {
|
|||
if api_err != nil {
|
||||
log.Fatalln("Merge request failed. Python api error: ", api_err)
|
||||
}
|
||||
defer merge_api.Close()
|
||||
log.Println("Locate python api", merge_api.Name())
|
||||
cmd := exec.Command(py_exec, merge_api.Name(), "merge", master_path, dev_path, output_path, changelog_path, "debug")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue