-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
SPMI: Fix a few memory leaks #104691
SPMI: Fix a few memory leaks #104691
Conversation
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
cc @dotnet/jit-contrib |
@@ -446,8 +443,8 @@ int __cdecl main(int argc, char* argv[]) | |||
} | |||
} | |||
|
|||
// Create a new CompileResult for this compilation (the CompileResult from the stored file is | |||
// in originalCR if necessary). | |||
delete mc->cr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete mc->cr; | |
mc->Reset(); |
(also news up a CR, so below isn't needed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, made that change. I also moved the call to the end of the loop and only when there is going to be a next iteration of the repeatCount
loop.
No description provided.