diff --git a/internal/seclang/parser_test.go b/internal/seclang/parser_test.go index c5000ccd1..b03ce1fc8 100644 --- a/internal/seclang/parser_test.go +++ b/internal/seclang/parser_test.go @@ -169,6 +169,10 @@ func TestHardcodedIncludeDirectiveDDOS2(t *testing.T) { if err != nil { t.Fatal(err) } + err = tmpFile2.Close() + if err != nil { + t.Fatal(err) + } w := bufio.NewWriter(tmpFile) for i := 0; i < maxIncludeRecursion+1; i++ {