Skip to content

fix umfMemspaceFilterHelper leak#1582

Open
bratpiorka wants to merge 2 commits into
oneapi-src:mainfrom
bratpiorka:rrudnick_fix_memtarget
Open

fix umfMemspaceFilterHelper leak#1582
bratpiorka wants to merge 2 commits into
oneapi-src:mainfrom
bratpiorka:rrudnick_fix_memtarget

Conversation

@bratpiorka

Copy link
Copy Markdown
Contributor

Fix for potential crash in umfMemspaceFilterHelper:

  • clone memspace nodes before removal
  • add memTargetFilterRollback test

@bratpiorka bratpiorka requested a review from a team as a code owner June 15, 2026 14:29
@bratpiorka bratpiorka force-pushed the rrudnick_fix_memtarget branch 3 times, most recently from 2a6eace to 01569e6 Compare June 15, 2026 15:30
@bratpiorka bratpiorka force-pushed the rrudnick_fix_memtarget branch from 01569e6 to 26c986e Compare June 15, 2026 15:49
ret = umfMemspaceMemtargetAdd(memspace, target3);
ASSERT_EQ(ret, UMF_RESULT_SUCCESS);

ret = umfMemspaceUserFilter(memspace, removeEverything, nullptr);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test case with a filter where only id2 is removed?

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.

3 participants