diff --git a/src/blas/backends/cublas/cublas_scope_handle.cpp b/src/blas/backends/cublas/cublas_scope_handle.cpp index 3e60dc6b0..3ea57716b 100644 --- a/src/blas/backends/cublas/cublas_scope_handle.cpp +++ b/src/blas/backends/cublas/cublas_scope_handle.cpp @@ -64,7 +64,6 @@ CublasScopedContextHandler::~CublasScopedContextHandler() noexcept(false) { CUresult err; CUDA_ERROR_FUNC(cuCtxSetCurrent, err, original_); } - delete placedContext_; } void ContextCallback(void *userData) { diff --git a/src/blas/backends/rocblas/rocblas_scope_handle.cpp b/src/blas/backends/rocblas/rocblas_scope_handle.cpp index fa8d3f005..93a7c78e8 100644 --- a/src/blas/backends/rocblas/rocblas_scope_handle.cpp +++ b/src/blas/backends/rocblas/rocblas_scope_handle.cpp @@ -80,7 +80,6 @@ RocblasScopedContextHandler::~RocblasScopedContextHandler() noexcept(false) { hipError_t err; HIP_ERROR_FUNC(hipCtxSetCurrent, err, original_); } - delete placedContext_; } void ContextCallback(void *userData) { diff --git a/src/lapack/backends/cusolver/cusolver_scope_handle.cpp b/src/lapack/backends/cusolver/cusolver_scope_handle.cpp index 06c5666b3..f9c0cb1fb 100644 --- a/src/lapack/backends/cusolver/cusolver_scope_handle.cpp +++ b/src/lapack/backends/cusolver/cusolver_scope_handle.cpp @@ -65,7 +65,6 @@ CusolverScopedContextHandler::~CusolverScopedContextHandler() noexcept(false) { CUresult err; CUDA_ERROR_FUNC(cuCtxSetCurrent, err, original_); } - delete placedContext_; } void ContextCallback(void *userData) { diff --git a/src/lapack/backends/rocsolver/rocsolver_scope_handle.cpp b/src/lapack/backends/rocsolver/rocsolver_scope_handle.cpp index 809ba2763..3280f80bc 100644 --- a/src/lapack/backends/rocsolver/rocsolver_scope_handle.cpp +++ b/src/lapack/backends/rocsolver/rocsolver_scope_handle.cpp @@ -67,7 +67,6 @@ RocsolverScopedContextHandler::~RocsolverScopedContextHandler() noexcept(false) hipError_t err; HIP_ERROR_FUNC(hipCtxSetCurrent, err, original_); } - delete placedContext_; } void ContextCallback(void *userData) {