Skip to content

[DeviceASAN] Fix a UR_L0_LEAKS_DEBUG leak report #18612

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

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

yingcong-wu
Copy link
Contributor

@yingcong-wu yingcong-wu commented May 22, 2025

Some resource destruction is done in the destructor, but if we don't manually clear the map, then the destructor is called after the adapter release, which leads to the leak report and maybe some UB(trying to use adapter after it is released).

@yingcong-wu yingcong-wu requested a review from a team as a code owner May 22, 2025 09:28
@yingcong-wu yingcong-wu changed the title fix leak [DeviceASAN] Fix a UR_L0_LEAKS_DEBUG leak report May 22, 2025
@yingcong-wu
Copy link
Contributor Author

Hi @intel/llvm-gatekeepers , this PR is ready to merge, thanks.

@yingcong-wu yingcong-wu requested a review from a team May 23, 2025 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants