-
Notifications
You must be signed in to change notification settings - Fork 52
Fixed string memory leak #2207
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
base: develop
Are you sure you want to change the base?
Fixed string memory leak #2207
Conversation
|
I'll try to find more of these type of issue running grep in the codebase with |
|
Also, it seems that rocMLIR/mlir/lib/Dialect/Rock/IR/TransformMapBuilder.cpp Lines 292 to 307 in 687737e
|
51c3e34 to
3505062
Compare
I think you'd want to grep for uses of |
|
it can be a separate PR, but it'd be nice to change TransformMapBuilder and subclasses to not take "StringRef" to avoid these kind of issues. |
|
I have grep the following and made the changes: |
@Mr-Anyone Can you make sure that we have a ticket open in our backlog to properly addresses changing the API for these transform map function? |
9193279 to
84878b7
Compare
Motivation
Prevent memory leak and hard to debug situations.
Technical Details
Fix memory leak making a container like
llvm::SmallVectortake ownership.Resolve https://github.com/ROCm/rocMLIR-internal/issues/1987
Test Plan
Builds locally and wait for CI.
Test Result
Build locally.
Submission Checklist