-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Fix memory leak in LLVMTargetMachine.cpp #109610
New issue
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
Conversation
✅ With the latest revision this PR passed the C/C++ code formatter. |
@MaskRay Can you please review? In a previous commit, you made |
@KanRobert @phoebewang can you please review and merge? |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/6296 Here is the relevant piece of the build log for the reference
|
Because
MAB
is a raw pointer, it could potentially leak memory because of the||
in the null check.