Skip to content

Commit

Permalink
Clean up the temp directory
Browse files Browse the repository at this point in the history
Signed-off-by: GLVS Kiriti <glvskiriti2003369@gmail.com>
  • Loading branch information
GLVSKiriti authored and poiana committed Mar 26, 2024
1 parent 3814b5a commit fb626a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions events/syscall/remove_bulk_data_from_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var _ = events.Register(RemoveBulkDataFromDisk)
func RemoveBulkDataFromDisk(h events.Helper) error {
// Creates temporary data for testing, avoiding critical file deletion.
tmpDir, err := os.MkdirTemp(os.TempDir(), "created-by-falco-event-generator")
defer os.RemoveAll(tmpDir) // clean up
if err != nil {
return err
}
Expand Down

0 comments on commit fb626a4

Please sign in to comment.