From 9196807d37690363dc4f5c5a1cd01c5ead7e558e Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Thu, 23 Apr 2026 22:38:36 -0700 Subject: [PATCH] fix memory leak in rawkernelarg the __dealloc__ method was missing trailing underscores, so would not be recognized as the deallocator by Cython --- dpctl/_sycl_queue.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpctl/_sycl_queue.pyx b/dpctl/_sycl_queue.pyx index 06342889b0..766f385a8f 100644 --- a/dpctl/_sycl_queue.pyx +++ b/dpctl/_sycl_queue.pyx @@ -1753,7 +1753,7 @@ cdef class WorkGroupMemory: cdef class _RawKernelArg: - def __dealloc(self): + def __dealloc__(self): if(self._arg_ref): DPCTLRawKernelArg_Delete(self._arg_ref)