summaryrefslogtreecommitdiffstats
path: root/cuda
diff options
context:
space:
mode:
authorFerdia Sherry <fs436@cam.ac.uk>2021-01-27 00:26:09 +0000
committerWillem Jan Palenstijn <wjp@usecode.org>2021-01-27 11:34:38 +0100
commitfc891547234dfff9f8e687750efa1289768c53d7 (patch)
tree821b96722ea4bd8e463f51c72778e965acfbf9c2 /cuda
parent53cd9a90ef82136da0e1dd3d6b9681245c811d35 (diff)
downloadastra-fc891547234dfff9f8e687750efa1289768c53d7.tar.gz
astra-fc891547234dfff9f8e687750efa1289768c53d7.tar.bz2
astra-fc891547234dfff9f8e687750efa1289768c53d7.tar.xz
astra-fc891547234dfff9f8e687750efa1289768c53d7.zip
Fix memory leak in CUDA 2D fan_bp
Diffstat (limited to 'cuda')
-rw-r--r--cuda/2d/fan_bp.cu2
1 files changed, 2 insertions, 0 deletions
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;
}