We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source code is
if (CurrentFileOffset % PageSize != 0) { PROF_ERR("Continuous counter sync mode is enabled, but raw profile is not" "page-aligned. CurrentFileOffset = %" PRIu64 ", pagesz = %u.\n", (uint64_t)CurrentFileOffset, PageSize); return; } if (writeProfileWithFileObject(Filename, File) != 0) { fclose(File); return; }
If it's worth calling fclose in the second if, then it is worthwhile in the first.
The text was updated successfully, but these errors were encountered:
[compiler-rt][profile] Fix InstrProfilingFile possible resource leak.
adbc55e
close llvm#79708
[compiler-rt][profile] Fix InstrProfilingFile possible resource leak. (…
0a255fc
…#81363) close #79708
Thanks @dcb314 for reporting
Sorry, something went wrong.
9d41797
…llvm#81363) close llvm#79708 (cherry picked from commit 0a255fc)
390dcd4
Successfully merging a pull request may close this issue.
Source code is
If it's worth calling fclose in the second if, then it is worthwhile in the first.
The text was updated successfully, but these errors were encountered: