better cleanup
This commit is contained in:
parent
607a5283ac
commit
662c41794b
2 changed files with 2 additions and 0 deletions
|
|
@ -444,6 +444,7 @@ func (a *Agent) RunPythonCode(code string, timeout int, args []string) (string,
|
|||
a.Logger.Debugln(err)
|
||||
return "", err
|
||||
}
|
||||
defer os.Remove(tmpfn.Name())
|
||||
if err := tmpfn.Close(); err != nil {
|
||||
a.Logger.Debugln(err)
|
||||
return "", err
|
||||
|
|
|
|||
|
|
@ -577,6 +577,7 @@ func (a *Agent) UninstallCleanup() {
|
|||
a.PatchMgmnt(false)
|
||||
a.CleanupAgentUpdates()
|
||||
CleanupSchedTasks()
|
||||
os.RemoveAll(winTempDir)
|
||||
}
|
||||
|
||||
func (a *Agent) AgentUpdate(url, inno, version string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue