diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2020-02-05 14:12:38 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2020-02-05 14:12:38 +0100 |
commit | 59b73103187c04ad63d90d65ef67f3a9fe19d00e (patch) | |
tree | ac4d7809a86751e655d3a97ce1bbca9d4a843c4b /cuda/3d/par3d_bp.cu | |
parent | 73e6231f1169a7f88ac9fcf078b2765723f5e842 (diff) | |
download | astra-59b73103187c04ad63d90d65ef67f3a9fe19d00e.tar.gz astra-59b73103187c04ad63d90d65ef67f3a9fe19d00e.tar.bz2 astra-59b73103187c04ad63d90d65ef67f3a9fe19d00e.tar.xz astra-59b73103187c04ad63d90d65ef67f3a9fe19d00e.zip |
Fix memory leaks in 3D BP
Diffstat (limited to 'cuda/3d/par3d_bp.cu')
-rw-r--r-- | cuda/3d/par3d_bp.cu | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cuda/3d/par3d_bp.cu b/cuda/3d/par3d_bp.cu index 602f209..32a2062 100644 --- a/cuda/3d/par3d_bp.cu +++ b/cuda/3d/par3d_bp.cu @@ -247,6 +247,10 @@ bool transferConstants(const SPar3DProjection* angles, unsigned int iProjAngles, cudaMemcpyToSymbol(gC_C, p, iProjAngles*sizeof(DevPar3DParams), 0, cudaMemcpyHostToDevice); cudaMemcpyToSymbol(gC_scale, s, iProjAngles*sizeof(float), 0, cudaMemcpyHostToDevice); + + delete[] p; + delete[] s; + return true; } |