Skip to content

Fix memory leak in RawKernelArg#2294

Merged
ndgrigorian merged 1 commit intomasterfrom
fix-memory-leak-in-rawkernelarg
Apr 24, 2026
Merged

Fix memory leak in RawKernelArg#2294
ndgrigorian merged 1 commit intomasterfrom
fix-memory-leak-in-rawkernelarg

Conversation

@ndgrigorian
Copy link
Copy Markdown
Collaborator

The __dealloc__ method was written as __dealloc, so would not be recognized as the deallocator by Cython, meaning it has been leaking memory from C

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?
  • If this PR is a work in progress, are you opening the PR as a draft?

the __dealloc__ method was missing trailing underscores, so would not be recognized as the deallocator by Cython
@ndgrigorian ndgrigorian force-pushed the fix-memory-leak-in-rawkernelarg branch from 0eb34a7 to 9196807 Compare April 24, 2026 05:38
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 24, 2026

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Apr 24, 2026

Coverage Status

coverage: 77.285% (+0.02%) from 77.262% — fix-memory-leak-in-rawkernelarg into master

Copy link
Copy Markdown
Collaborator

@vlad-perevezentsev vlad-perevezentsev left a comment

Choose a reason for hiding this comment

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

Great catch!
LGTM
Thank you @ndgrigorian

@ndgrigorian ndgrigorian merged commit 8b3f66e into master Apr 24, 2026
72 checks passed
@ndgrigorian ndgrigorian deleted the fix-memory-leak-in-rawkernelarg branch April 24, 2026 08:31
@ndgrigorian ndgrigorian mentioned this pull request Apr 24, 2026
8 tasks
ndgrigorian added a commit that referenced this pull request Apr 24, 2026
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