Merge pull request #10070 from testwill/close_file

fix: close profile
This commit is contained in:
Fu Wei 2024-04-14 00:58:38 +00:00 committed by GitHub
commit 8eb03f17b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,6 +26,7 @@ func FuzzLoadDefaultProfile(data []byte) int {
if err != nil {
return 0
}
defer f.Close()
defer os.Remove("fuzz_file")
_, err = f.Write(data)
if err != nil {