diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp index 272520fa51f01..1bec83be4c80b 100644 --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp @@ -352,6 +352,7 @@ TEST(SanitizerCommon, ReportFile) { // This will close tmpfile. report_file.SetReportPath("stderr"); Unlink(tmpfile); + Unlink(path); } TEST(SanitizerCommon, FileExists) {