From fc891547234dfff9f8e687750efa1289768c53d7 Mon Sep 17 00:00:00 2001 From: Ferdia Sherry Date: Wed, 27 Jan 2021 00:26:09 +0000 Subject: Fix memory leak in CUDA 2D fan_bp --- cuda/2d/fan_bp.cu | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cuda') diff --git a/cuda/2d/fan_bp.cu b/cuda/2d/fan_bp.cu index 76d2fb9..7bba302 100644 --- a/cuda/2d/fan_bp.cu +++ b/cuda/2d/fan_bp.cu @@ -290,6 +290,8 @@ bool transferConstants(const SFanProjection* angles, unsigned int iProjAngles, b // TODO: Check for errors cudaMemcpyToSymbol(gC_C, p, iProjAngles*sizeof(DevFanParams), 0, cudaMemcpyHostToDevice); + delete [] p; + return true; } -- cgit v1.2.3