mozilla / mig

Distributed & real time digital forensics at the speed of the cloud

Home Page:http://mig.mozilla.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Action.Sign() leaves temporary files around

ameihm0912 opened this issue · comments

The Sign function for an action creates a temporary file as part of the process.

mig/action.go

Lines 277 to 281 in f3a281f

filename, err := a.ToTempFile()
if err != nil {
panic(err)
}
a2, err := ActionFromFile(filename)

This temporary file is never removed. This can result in a large number of temporary action files being created, especially on the scheduler which uses this Sign function to dispatch agent destroy actions.